Auto-commit memory

ABSTRACT

Apparatuses, systems, methods, and computer program products are disclosed. A method includes processing metadata for data saved from a volatile memory buffer to a non-volatile storage medium. The data may be saved in response to a trigger event for a volatile memory buffer. A method includes locating saved data on a non-volatile storage medium. A method includes providing access to saved data after a trigger event based on processed metadata.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application:

-   -   is a continuation-in-part of and claims priority to U.S. patent         application Ser. No. 13/694,000 now U.S. Pat. No. 9,047,178         entitled “APPARATUS, SYSTEM, AND METHOD FOR AUTO-COMMIT MEMORY         MANAGEMENT” and filed on Dec. 4, 2012 for Nisha Talagala, et         al.;     -   claims the benefit of U.S. Provisional Patent Application No.         61/705,058 entitled “APPARATUS, SYSTEM, AND METHOD FOR SNAPSHOTS         IN A STORAGE DEVICE” and filed on Sep. 24, 2012 for Nisha         Talagala, et al.;     -   claims the benefit of U.S. Provisional Patent Application No.         61/691,221 entitled “APPARATUS, SYSTEM, AND METHOD FOR         AUTO-COMMIT MEMORY” and filed on Aug. 20, 2012 for Nisha         Talagala, et al.;     -   claims the benefit of U.S. Provisional Patent Application No.         61/661,742 entitled “APPARATUS, SYSTEM, AND METHOD FOR         AUTO-COMMIT MEMORY” and filed on Jun. 19, 2012 for Nisha         Talagala, et al.;     -   claims the benefit of U.S. Provisional Patent Application No.         61/637,257 entitled “APPARATUS, SYSTEM, AND METHOD FOR         AUTO-COMMIT MEMORY” and filed on Apr. 23, 2012 for David Flynn,         et al.;     -   claims the benefit of U.S. Provisional Patent Application No.         61/583,133 entitled “APPARATUS, SYSTEM, AND METHOD FOR         AUTO-COMMIT MEMORY” and filed on Jan. 4, 2012 for David Flynn,         et al.;     -   is a continuation-in-part application of and claims priority to         U.S. patent application Ser. No. 13/324,942 now U.S. Pat. No.         8,527,693 entitled “APPARATUS, SYSTEM, AND METHOD FOR         AUTO-COMMIT MEMORY” and filed on Dec. 13, 2011 for David Flynn,         et al.; and     -   claims the benefit of U.S. Provisional Patent Application No.         61/422,635 entitled “APPARATUS, SYSTEM, AND METHOD FOR         AUTO-COMMIT MEMORY” and filed on Dec. 13, 2010 for David Flynn,         et al., each of which are incorporated herein by reference.

TECHNICAL FIELD

This disclosure relates to auto-commit memory and more particularly to exposing auto-commit memory management operations.

BACKGROUND

Volatile memory such as random access memory (RAM) typically has faster access times than non-volatile storage, such as NAND flash, magnetic hard disk drives, or the like. While the capacities of volatile memory continue to increase as the price of volatile memory decreases, volatile memory remains more expensive per unit of capacity than most non-volatile storage. This often leads to design tradeoffs between the speed and performance of volatile memory and the lower price of non-volatile storage at larger capacities.

SUMMARY

Methods for auto-commit memory are presented. In one embodiment, a method includes processing metadata for data saved from a volatile memory buffer to a non-volatile storage medium. Data, in certain embodiments, is saved in response to a trigger event for a volatile memory buffer. A method, in a further embodiment, includes locating saved data on a non-volatile storage medium. In another embodiment, a method includes providing access to saved data after a trigger event based on processed metadata.

Apparatuses for auto-commit memory are presented. In one embodiment, a volatile memory buffer is within an isolation zone of a non-volatile memory device. A memory buffer, in certain embodiments, is configured to store data in a non-volatile memory device in response to a trigger event. A commit agent, in one embodiment, is configured to provide access to data from a non-volatile memory device in response to recovery from a trigger event.

In one embodiment, an auto-commit memory is configured to present one or more volatile auto-commit buffers to a host computing device. One or more auto-commit buffers, in certain embodiments, are configured to write data from the one or more auto-commit buffers to a non-volatile recording medium. A storage management layer, in one embodiment, is configured to allocate one or more auto-commit buffers to a user. In a further embodiment, a commit agent is configured to provide a user with access to data from a non-volatile recording medium after the data has been written to the non-volatile recording medium.

Apparatuses for auto-commit memory management are presented. In one embodiment, an apparatus includes an auto-commit memory for a non-volatile memory device. An auto-commit memory, in certain embodiments, is configured to commit stored data from the auto-commit buffer to a non-volatile memory medium of a non-volatile memory device in response to a restart event. In a further embodiment, a populate module is configured to transfer data from a non-volatile memory medium to an auto-commit memory within a non-volatile memory device in response to a populate request. A destage module, in one embodiment, is configured to transfer data from an auto-commit memory to a non-volatile memory medium within a non-volatile memory device in response to a destage request.

Systems for auto-commit memory management are presented. In one embodiment, a system includes a device driver for a non-volatile storage device. In certain embodiments, a device driver is configured to execute on a processor of a host computing device. In one embodiment, a device driver includes an auto-commit request module configured to receive a destage request for a memory buffer within an isolation zone of a non-volatile recording device. A memory buffer, in certain embodiments, is configured to automatically commit stored data from an auto-commit buffer to a non-volatile recording medium of a non-volatile recording device. A device driver, in another embodiment, includes a flush module configured to execute a serializing instruction to flush data from a cache of a processor to a memory buffer in response to a destage request. A system, in one embodiment, includes a storage controller disposed on a non-volatile recording device. In a further embodiment, a storage controller includes a destage module configured to transfer data from a memory buffer to a non-volatile recording medium within a non-volatile recording device in response to a destage request.

BRIEF DESCRIPTION OF THE DRAWINGS

In order that the advantages of this disclosure will be readily understood, a more particular description of the disclosure briefly described above will be rendered by reference to specific embodiments that are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments of the disclosure and are not therefore to be considered to be limiting of its scope, the disclosure will be described and explained with additional specificity and detail through the use of the accompanying drawings, in which:

FIG. 1 is a schematic block diagram illustrating one embodiment of a system for power management;

FIG. 2 is a block diagram of one embodiment of an auto-commit memory;

FIG. 3 is a block diagram of another embodiment of an auto-commit memory;

FIG. 4 is a block diagram of a system comprising a plurality of auto-commit memories;

FIG. 5 is a block diagram of an auto-commit memory implemented with a commit management apparatus;

FIG. 6 is a block diagram of another embodiment of a system comprising an auto-commit memory;

FIG. 7 is a flow diagram of one embodiment of a method for providing an auto-commit memory;

FIG. 8 is a flow diagram of another embodiment of a method for providing an auto-commit memory;

FIG. 9 is a flow diagram of another embodiment of a method for providing an auto-commit memory;

FIG. 10A is a schematic block diagram illustrating one embodiment of an auto-commit memory module;

FIG. 10B is a schematic block diagram illustrating another embodiment of an auto-commit memory module;

FIG. 11 is a schematic flow chart diagram illustrating one embodiment of a method for auto-commit memory;

FIG. 12 is a schematic flow chart diagram illustrating another embodiment of a method for auto-commit memory;

FIG. 13 is a schematic flow chart diagram illustrating a further embodiment of a method for auto-commit memory; and

FIG. 14 is a schematic flow chart diagram illustrating an additional embodiment of a method for auto-commit memory.

DETAILED DESCRIPTION

Reference throughout this specification to features, advantages, or similar language does not imply that all of the features and advantages that may be realized with the present disclosure should be or are in any single embodiment of the disclosure. Rather, language referring to the features and advantages is understood to mean that a specific feature, advantage, or characteristic described in connection with an embodiment is included in at least one embodiment of the present disclosure. Thus, discussion of the features and advantages, and similar language, throughout this specification may, but do not necessarily, refer to the same embodiment.

Furthermore, the described features, advantages, and characteristics of the disclosure may be combined in any suitable manner in one or more embodiments. One skilled in the relevant art will recognize that the disclosure may be practiced without one or more of the specific features or advantages of a particular embodiment. In other instances, additional features and advantages may be recognized in certain embodiments that may not be present in all embodiments of the disclosure. These features and advantages of the present invention will become more fully apparent from the following description and appended claims, or may be learned by the practice of the disclosure as set forth hereinafter.

Many of the functional units described in this specification have been labeled as modules, in order to more particularly emphasize their implementation independence. For example, a module may be implemented as a hardware circuit comprising custom VLSI circuits or gate arrays, off-the-shelf semiconductors such as logic chips, transistors, or other discrete components. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices or the like.

Modules may also be implemented in software for execution by various types of processors. An identified module of executable code may, for instance, comprise one or more physical or logical blocks of computer instructions which may, for instance, be organized as an object, procedure, or function. Nevertheless, the executables of an identified module need not be physically located together, but may comprise disparate instructions stored in different locations which, when joined logically together, comprise the module and achieve the stated purpose for the module.

Indeed, a module of executable code may be a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs, and across several memory devices. Similarly, operational data may be identified and illustrated herein within modules, and may be embodied in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations including over different storage devices, and may exist, at least partially, merely as electronic signals on a system or network. Where a module or portions of a module are implemented in software, the software portions are stored on one or more computer readable media.

Reference throughout this specification to “one embodiment,” “an embodiment,” or similar language means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Thus, appearances of the phrases “in one embodiment,” “in an embodiment,” and similar language throughout this specification may, but do not necessarily, all refer to the same embodiment.

Reference to a computer readable medium may take any form capable of storing machine-readable instructions on a digital processing apparatus. A computer readable medium may be embodied by a compact disk, digital-video disk, a magnetic tape, a Bernoulli drive, a magnetic disk, a punch card, flash memory, integrated circuits, or other digital processing apparatus memory device.

Furthermore, the described features, structures, or characteristics of the disclosure may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided, such as examples of programming, software modules, user selections, network transactions, database queries, database structures, hardware modules, hardware circuits, hardware chips, etc., to provide a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the disclosure may be practiced without one or more of the specific details, or with other methods, components, materials, and so forth. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.

The schematic flow chart diagrams included herein are generally set forth as logical flow chart diagrams. As such, the depicted order and labeled steps are indicative of one embodiment of the presented method. Other steps and methods may be conceived that are equivalent in function, logic, or effect to one or more steps, or portions thereof, of the illustrated method. Additionally, the format and symbols employed are provided to explain the logical steps of the method and are understood not to limit the scope of the method. Although various arrow types and line types may be employed in the flow chart diagrams, they are understood not to limit the scope of the corresponding method. Indeed, some arrows or other connectors may be used to indicate only the logical flow of the method. For instance, an arrow may indicate a waiting or monitoring period of unspecified duration between enumerated steps of the depicted method. Additionally, the order in which a particular method occurs may or may not strictly adhere to the order of the corresponding steps shown.

Power Reduction Management

FIG. 1 depicts one embodiment of a system 100 for data and/or power management in the event of a power failure, power reduction, or other power loss. In the depicted embodiment, the system 100 includes a host computing device 114 and a storage device 102. The host 114 may be a computer such as a server, laptop, desktop, or other computing device known in the art. The host 114 typically includes components such as memory, processors, buses, and other components as known to those of skill in the art.

The host 114 stores data in the storage device 102 and communicates data with the storage device 102 via a communications connection (not shown). The storage device 102 may be internal to the host 114 or external to the host 114. The communications connection may be a bus, a network, or other manner of connection allowing the transfer of data between the host 114 and the storage device 102. In one embodiment, the storage device 102 is connected to the host 114 by a PCI connection such as PCI express (PCI-e). The storage device 102 may be a card that plugs into a PCI-e connection on the host 114.

The storage device 102 also has a primary power connection 130 that connects the storage device 102 with a primary power source that provides the storage device 102 with the power that it needs to perform data storage operations such as reads, writes, erases, etc. The storage device 102, under normal operating conditions, receives the necessary power from the primary power source over the primary power connection 130. In certain embodiments, such as the embodiment shown in FIG. 1, the primary power connection 130 connects the storage device 102 to the host 114, and the host 114 acts as the primary power source that supplies the storage device 102 with power. In certain embodiments, the primary power connection 130 and the communications connection discussed above are part of the same physical connection between the host 114 and the storage device 102. For example, the storage device 102 may receive power over a PCI connection.

In other embodiments, the storage device 102 may connect to an external power supply via the primary power connection 130. For example, the primary power connection 130 may connect the storage device 102 with a primary power source that is a power converter (often called a power brick). Those in the art will appreciate that there are various ways by which a storage device 102 may receive power, and the variety of devices that can act as the primary power source for the storage device 102.

The storage device 102 provides nonvolatile storage, memory, and/or recording media 110 for the host 114. FIG. 1 shows the storage device 102 comprising a write data pipeline 106, a read data pipeline 108, nonvolatile memory 110, a storage controller 104, a power management apparatus 122, and a secondary power supply 124. The storage device 102 may contain additional components that are not shown in order to provide a simpler view of the storage device 102.

The nonvolatile memory 110 stores data such that the data is retained even when the storage device 102 is not powered. Examples of nonvolatile memory 110 include flash memory, nano random access memory (nano RAM or NRAM), nanocrystal wire-based memory, silicon-oxide based sub-10 nanometer process memory, graphene memory, Silicon-Oxide-Nitride-Oxide-Silicon (SONOS), Resistive random-access memory (RRAM), programmable metallization cell (PMC), conductive-bridging RAM (CBRAM), magneto-resistive RAM (MRAM), dynamic RAM (DRAM), phase change RAM (PRAM), or other non-volatile solid-state storage media. In other embodiments, the non-volatile memory 110 may comprise magnetic media, optical media, or other types of non-volatile storage media. For example, in those embodiments, the non-volatile storage device 102 may comprise a hard disk drive, an optical storage drive, or the like.

While the non-volatile memory 110 is referred to herein as “memory media,” in various embodiments, the non-volatile memory 110 may more generally comprise a non-volatile recording media capable of recording data, the non-volatile recording media may be referred to as a non-volatile memory media, a non-volatile storage media, or the like. Further, the non-volatile storage device 102, in various embodiments, may comprise a non-volatile recording device, a non-volatile memory device, a non-volatile storage device, or the like.

The storage device 102 also includes a storage controller 104 that coordinates the storage and retrieval of data in the nonvolatile memory 110. The storage controller 104 may use one or more indexes to locate and retrieve data, and perform other operations on data stored in the storage device 102. For example, the storage controller 104 may include a groomer for performing data grooming operations such as garbage collection.

As shown, the storage device 102, in certain embodiments, implements a write data pipeline 106 and a read data pipeline 108, an example of which is described in greater detail below with regard to FIG. 3. The write data pipeline 106 may perform certain operations on data as the data is transferred from the host 114 into the nonvolatile memory 110. These operations may include, for example, error correction code (ECC) generation, encryption, compression, and others. The read data pipeline 108 may perform similar and potentially inverse operations on data that is being read out of nonvolatile memory 110 and sent to the host 114.

The storage device 102 also includes a secondary power supply 124 that provides power in the event of a complete or partial power disruption resulting in the storage device 102 not receiving enough electrical power over the primary power connection 130. A power disruption is any event that unexpectedly causes the storage device 102 to stop receiving power over the primary power connection 130, or causes a significant reduction in the power received by the storage device 102 over the primary power connection 130. A significant reduction in power, in one embodiment, includes the power falling below a predefined threshold. The predefined threshold, in a further embodiment, is selected to allow for normal fluctuations in the level of power from the primary power connection 130. For example, the power to a building where the host 114 and the storage device 102 may go out. A user action (such as improperly shutting down the host 114 providing power to the storage device 102), a failure in the primary power connection 130, or a failure in the primary power supply may cause the storage device 102 to stop receiving power. Numerous, varied power disruptions may cause unexpected power loss for the storage device 102.

The secondary power supply 124 may include one or more batteries, one or more capacitors, a bank of capacitors, a separate connection to a power supply, or the like. In one embodiment, the secondary power supply 124 provides power to the storage device 102 for at least a power hold-up time during a power disruption or other reduction in power from the primary power connection 130. The secondary power supply 124, in a further embodiment, provides a power hold-up time long enough to enable the storage device 102 to flush data that is not in nonvolatile memory 110 into the nonvolatile memory 110. As a result, the storage device 102 can preserve the data that is not permanently stored in the storage device 102 before the lack of power causes the storage device 102 to stop functioning. In certain implementations, the secondary power supply 124 may comprise the smallest capacitors possible that are capable of providing a predefined power hold-up time to preserve space, reduce cost, and simplify the storage device 102. In one embodiment, one or more banks of capacitors are used to implement the secondary power supply 124 as capacitors are generally more reliable, require less maintenance, and have a longer life than other options for providing secondary power.

In one embodiment, the secondary power supply 124 is part of an electrical circuit that automatically provides power to the storage device 102 upon a partial or complete loss of power from the primary power connection 130. Similarly, the system 100 may be configured to automatically accept or receive electric power from the secondary power supply 124 during a partial or complete power loss. For example, in one embodiment, the secondary power supply 124 may be electrically coupled to the storage device 102 in parallel with the primary power connection 130, so that the primary power connection 130 charges the secondary power supply 124 during normal operation and the secondary power supply 124 automatically provides power to the storage device 102 in response to a power loss. In one embodiment, the system 100 further includes a diode or other reverse current protection between the secondary power supply 124 and the primary power connection 130, to prevent current from the secondary power supply 124 from reaching the primary power connection 130. In another embodiment, the power management apparatus 122 may enable or connect the secondary power supply 124 to the storage device 102 using a switch or the like in response to reduced power from the primary power connection 130.

An example of data that is not yet in the nonvolatile memory 110 may include data that may be held in volatile memory as the data moves through the write data pipeline 106. If data in the write data pipeline 106 is lost during a power outage (i.e., not written to nonvolatile memory 110 or otherwise permanently stored), corruption and data loss may result.

In certain embodiments, the storage device 102 sends an acknowledgement to the host 114 at some point after the storage device 102 receives data to be stored in the nonvolatile memory 110. The write data pipeline 106, or a sub-component thereof, may generate the acknowledgement. It is advantageous for the storage device 102 to send the acknowledgement as soon as possible after receiving the data.

In certain embodiments, the write data pipeline 106 sends the acknowledgement before data is actually stored in the nonvolatile memory 110. For example, the write data pipeline 106 may send the acknowledgement while the data is still in transit through the write data pipeline 106 to the nonvolatile memory 110. In such embodiments, it is highly desirable that the storage device 102 flush all data for which the storage controller 104 has sent an acknowledgement to the nonvolatile memory 110 before the secondary power supply 124 loses sufficient power in order to prevent data corruption and maintain the integrity of the acknowledgement sent.

In addition, in certain embodiments, some data within the write data pipeline 106 may be corrupted as a result of the power disruption. A power disruption may include a power failure as well as unexpected changes in power levels supplied. The unexpected changes in power levels may place data that is in the storage device 102, but not yet in nonvolatile memory 110, at risk. Data corruption may begin to occur before the power management apparatus 122 is even aware (or notified) that there has been a disruption in power.

For example, the PCI-e specification indicates that, in the event that a power disruption is signaled, data should be assumed corrupted and not stored in certain circumstances. Similar potential corruption may occur for storage devices 102 connected to hosts 114 using other connection types, such as PCI, serial advanced technology attachment (serial ATA or SATA), parallel ATA (PATA), small computer system interface (SCSI), IEEE 1394 (FireWire), Fiber Channel, universal serial bus (USB), PCIe-AS, or the like. A complication may arise when a power disruption occurs (meaning that data received from that point to the present time may be presumed corrupt), a period of time passes, the disruption is sensed and signaled, and the power management apparatus 122 receives the signal and becomes aware of the power disruption. The lag between the power disruption occurring and the power management apparatus 122 discovering the power disruption can allow corrupt data to enter the write data pipeline 106. In certain embodiments, this corrupt data should be identified and not stored to the nonvolatile memory 110. Alternately, this corrupt data can be stored in the nonvolatile memory 110 and marked as corrupt as described below. For simplicity of description, identifying corrupt data and not storing the data to the nonvolatile memory 110 will be primarily used to describe the functions and features herein. Furthermore, the host 114 should be aware that this data was not stored, or alternatively data for which integrity is a question is not acknowledged until data integrity can be verified. As a result, corrupt data should not be acknowledged.

The storage device 102 also includes a power management apparatus 122. In certain embodiments, the power management apparatus 122 is implemented as part of the storage controller 104. The power management apparatus 122 may be, for instance, a software driver or be implemented in firmware for the storage device 102. In other embodiments, the power management apparatus 122 may be implemented partially in a software driver and partially in the storage controller 104, or the like. In one embodiment, at least a portion of the power management apparatus 122 is implemented on the storage device 102, as part of the storage controller 104, or the like, so that the power management apparatus 122 continues to function during a partial or complete power loss using power from the secondary power supply 124, even if the host 114 is no longer functioning.

In one embodiment, the power management apparatus 122 initiates a power loss mode in the storage device 102 in response to a reduction in power from the primary power connection 130. During the power loss mode, the power management apparatus 122, in one embodiment flushes data that is in the storage device 102 that is not yet stored in nonvolatile memory 110 into the nonvolatile memory 110. In particular embodiments, the power management apparatus 122 flushes the data that has been acknowledged and is in the storage device 102 that is not yet stored in nonvolatile memory 110 into the nonvolatile memory 110. In certain embodiments, described below, the power management apparatus 122 may adjust execution of data operations on the storage device 102 to ensure that essential operations complete before the secondary power supply 124 loses sufficient power to complete the essential operations, i.e. during the power hold-up time that the secondary power supply 124 provides.

In certain embodiments, the essential operations comprise those operations for data that has been acknowledged as having been stored, such as acknowledged write operations. In other embodiments, the essential operations comprise those operations for data that has been acknowledged as having been stored and erased. In other embodiments, the essential operations comprise those operations for data that have been acknowledged as having been stored, read, and erased. The power management apparatus 122 may also terminate non-essential operations to ensure that those non-essential operations do not consume power unnecessarily and/or do not block essential operations from executing; for example, the power management apparatus 122 may terminate erase operations, read operations, unacknowledged write operations, and the like.

In one embodiment, terminating non-essential operations preserves power from the secondary power supply 124, allowing the secondary power supply 124 to provide the power hold-up time. In a further embodiment, the power management apparatus 122 quiesces or otherwise shuts down operation of one or more subcomponents of the storage device 102 during the power loss mode to conserve power from the secondary power supply 124. For example, in various embodiments, the power management apparatus 122 may quiesce operation of the read data pipeline 108, a read direct memory access (DMA) engine, and/or other subcomponents of the storage device 102 that are associated with non-essential operations.

The power management apparatus 122 may also be responsible for determining what data was corrupted by the power disruption, preventing the corrupt data from being stored in nonvolatile memory 110, and ensuring that the host 114 is aware that the corrupted data was never actually stored on the storage device 102. This prevents corruption of data in the storage device 102 resulting from the power disruption.

In one embodiment, the system 100 includes a plurality of storage devices 102. The power management apparatus 122, in one embodiment, manages power loss modes for each storage device 102 in the plurality of storage devices 102, providing a system-wide power loss mode for the plurality of storage devices 102. In a further embodiment, each storage device 102 in the plurality of storage devices 102 includes a separate power management apparatus 122 that manages a separate power loss mode for each individual storage device 102. The power management apparatus 122, in one embodiment, may quiesce or otherwise shut down one or more storage devices 102 of the plurality of storage devices 102 to conserve power from the secondary power supply 124 for executing essential operations on one or more other storage devices 102.

In one embodiment, the system 100 includes one or more adapters for providing electrical connections between the host 114 and the plurality of storage devices 102. An adapter, in various embodiments, may include a slot or port that receives a single storage device 102, an expansion card or daughter card that receives two or more storage devices 102, or the like. For example, in one embodiment, the plurality of storage devices 102 may each be coupled to separate ports or slots of the host 114. In another example embodiment, one or more adapters, such as daughter cards or the like, may be electrically coupled to the host 114 (i.e. connected to one or more slots or ports of the host 114) and the one or more adapters may each provide connections for two or more storage devices 102.

In one embodiment, the system 100 includes a circuit board, such as a motherboard or the like, that receives two or more adapters, such as daughter cards or the like, and each adapter receives two or more storage devices 102. In a further embodiment, the adapters are coupled to the circuit board using PCI-e slots of the circuit board and the storage devices 102 are coupled to the adapters using PCI-e slots of the adapters. In another embodiment, the storage devices 102 each comprise a dual in-line memory module (DIMM) of non-volatile solid-state storage, such as Flash memory, or the like. In one embodiment, the circuit board, the adapters, and the storage devices 102 may be external to the host 114, and may include a separate primary power connection 130. For example, the circuit board, the adapters, and the storage devices 102 may be housed in an external enclosure with a power supply unit (PSU) and may be in communication with the host 114 using an external bus such as eSATA, eSATAp, SCSI, FireWire, Fiber Channel, USB, PCIe-AS, or the like. In another embodiment, the circuit board may be a motherboard of the host 114, and the adapters and the storage devices 102 may be internal storage of the host 114.

In view of this disclosure, one of skill in the art will recognize many configurations of adapters and storage devices 102 for use in the system 100. For example, each adapter may receive two storage devices 102, four storage devices 102, or any number of storage devices. Similarly, the system 100 may include one adapter, two adapters, three adapters, four adapters, or any supported number of adapters. In one example embodiment, the system 100 includes two adapters and each adapter receives four storage devices 102, for a total of eight storage devices 102.

In one embodiment, the secondary power supply 124 provides electric power to each of a plurality of storage devices 102. For example, the secondary power supply 124 may be disposed in a circuit on a main circuit board or motherboard and may provide power to several adapters. In a further embodiment, the system 100 includes a plurality of secondary power supplies that each provide electric power to a subset of a plurality of storage devices 102. For example, in one embodiment, each adapter may include a secondary power supply 124 for storage devices 102 of the adapter. In a further embodiment, each storage device 102 may include a secondary power supply 124 for the storage device 102. In view of this disclosure, one of skill in the art will recognize different arrangements of secondary power supplies 124 for providing power to a plurality of storage devices 102.

Auto-Commit Memory

The systems, methods, and apparatus for power reduction management described above may be leveraged to implement an auto-commit memory capable of implementing memory semantic write operations (e.g., persistent writes) at CPU memory write granularity and speed. By guaranteeing that certain commit actions for the write operations will occur, even in the case of a power failure or other restart event, in certain embodiments, volatile memory such as DRAM, SRAM, BRAM, or the like, may be used as, considered, or represented as non-volatile.

A restart event, as used herein, comprises an intentional or unintentional loss of power to at least a portion of the host computing device (or system) and/or a non-volatile storage device. A restart event may comprise a system reboot, reset, or shutdown event; a power fault, power loss, or power failure event; or another interruption or reduction of power. By guaranteeing certain commit actions, the auto-commit memory may allow storage clients to resume execution states, even after a restart event, may allow the storage clients to persist different independent data sets, or the like.

As used herein, the term “memory semantic operations,” or more generally, “memory operations,” refers to operations having a granularity, synchronicity, and access semantics of volatile memory accesses, using manipulatable memory pointers, or the like. Memory semantic operations may include, but are not limited to: load, store, peek, poke, write, read, set, clear, and so on. Memory semantic operations may operate at a CPU-level of granularity (e.g., single bytes, words, cache lines, or the like), and may be synchronous (e.g., the CPU waits for the operation to complete). In certain embodiments, providing access at a larger sized granularity, such as cache lines, may increase access rates, provide more efficient write combining, or the like than smaller sized granularity access.

The ACM may be available to computing devices and/or applications (both local and remote) using one or more of a variety of memory mapping technologies, including, but not limited to, memory mapped I/O (MMIO), port I/O, port-mapped IO (PMIO), Memory mapped file I/O, and the like. For example, the ACM may be available to computing devices and/or applications (both local and remote) using a PCI-e Base Address Register (BAR), or other suitable mechanism. ACM may also be directly accessible via a memory bus of a CPU, using an interface such as a double data rate (DDR) memory interface, HyperTransport, QuickPath Interconnect (QPI), or the like. Accordingly, the ACM may be accessible using memory access semantics, such as CPU load/store, direct memory access (DMA), 3^(rd) party DMA, remote DMA (RDMA), atomic test and set, and so on. The direct, memory semantic access to the ACM disclosed herein allows many of the system and/or virtualization layer calls typically required to implement committed operations to be bypassed, (e.g., call backs via asynchronous Input/Output interfaces may be bypassed). In some embodiments, an ACM may be mapped to one or more virtual ranges (e.g., virtual BAR ranges, virtual memory addresses, or the like). The virtual mapping may allow multiple computing devices and/or applications to share a single ACM address range 1021 (e.g., access the same ACM simultaneously, within different virtual address ranges). An ACM may be mapped into an address range of a physical memory address space addressable by a CPU so that the CPU may use load/store instructions to read and write data directly to the ACM using memory semantic accesses. A CPU, in a further embodiment, may map the physically mapped ACM into a virtual memory address space, making the ACM available to user-space processes or the like as virtual memory.

The ACM may be pre-configured to commit its contents upon detection of a restart condition (or other pre-determined triggering event) and, as such, operations performed on the ACM may be viewed as being “instantly committed.” For example, an application may perform a “write-commit” operation on the ACM using memory semantic writes that operate at CPU memory granularity and speed, without the need for separate corresponding “commit” commands, which may significantly increase the performance of applications affected by write-commit latencies. As used herein, a write-commit operation is an operation in which an application writes data to a memory location (e.g., using a memory semantic access), and then issues a subsequent commit command to commit the operation (e.g., to persistent storage or other commit mechanism).

Applications whose performance is based on write-commit latency, the time delay between the initial memory write and the subsequent persistent commit operation, typically attempt to reduce this latency by leveraging a virtual memory system (e.g., using a memory backed file). In this case, the application performs high-performance memory semantic write operations in system RAM, but, in order to commit the operations, must perform subsequent “commit” commands to persist each write operation to the backing file (or other persistent storage). Accordingly, each write-commit operation may comprise its own separate commit command. For example, in a database logging application, each log transaction must be written and committed before a next transaction is logged. Similarly, messaging systems (e.g., store and forward systems) must write and commit each incoming message, before receipt of the message can be acknowledged. The write-commit latency, therefore, comprises a relatively fast memory semantic write followed by a much slower operation to commit the data to persistent storage. Write-commit latency may include several factors including, access times to persistent storage, system call overhead (e.g., translations between RAM addresses, backing store LBA, etc.), and so on. Examples of applications that may benefit from reduced write-commit latency include, but are not limited to: database logging applications, filesystem logging, messaging applications (e.g., store and forward), semaphore primitives, and so on.

The systems, apparatus, and methods for auto-commit memory disclosed herein may be used to significantly increase the performance of write-commit latency bound applications by providing direct access to a memory region at any suitable level of addressing granularity including byte level, page level, cache-line level, or other memory region level, that is guaranteed to be committed in the event of a system failure or other restart event, without the application issuing a commit command. Accordingly, the write-commit latency of an application may be reduced to the latency of a memory semantic access (a single write over a system bus).

FIG. 2 is a block diagram of a system 1000 comprising one embodiment of an auto-commit memory (ACM) 1011. As used herein, an auto-commit memory comprises low-latency, high reliability memory media, exposed to ACM users for direct memory semantic access, at a memory semantic access and address granularity level of at least byte level, combined with logic and components together configured to restore the same state of data stored in the ACM 1011 that existed prior to the restart event and the same level of memory semantic access to data stored in the auto-commit memory after a restart event. An auto-commit memory, in various embodiments, may comprise a protected memory, a persistent memory, a guaranteed memory, a restart survival memory, an instant commit memory, a safe memory, a preserved memory, or the like. In certain embodiments, the ACM 1011 guarantees that data stored in the ACM 1011 will be accessible after a restart event. The ACM 1011, in one embodiment, comprises a volatile memory media coupled to a controller, logic, and other components that commit data to a non-volatile storage medium when necessary or when directed by an ACM user. In a further embodiment, the ACM 1011 may include a natively non-volatile storage medium such as phase change memory (PCM or PRAM), and a triggered commit action may process data on the non-volatile storage medium in response to a restart event such that the data remains available to an owner of the data after the restart event.

ACM may be built out of memory addressable non-volatile memory. That non-volatile memory may be emulated with battery or capacitor backed DRAM that is saved and restored across powercuts or it may be a true byte addressable non-volatile memory. To use an NVM as ACM, the NVM may also contain the “arming” meta-data which describes how to crash recover (or deferred commit) the data to the right place. This meta-data may include “addressing” information that describes how to interpret what the data represents so it can be committed later. The metadata may include a designation of what LBA the data is to be committed under the VSL, it may be the designation of what LBA under a partition or virtual volume, it may be the filesystem, inode and offset, or the like. The metadata may include, therefore, the fully qualified “address” from the root of the device down to the exact context (e.g., SML→VSU→FS→INODE). ACM data may include information that is found recorded in a non-volatile medium designated to be committed automatically as per the associated ACM meta-data should the system restart. ACM or auto-commit memory may include a non-volatile medium that stores ACM data and meta-data that may be accessible using memory load/store semantics, may be processed automatically or “committed” after a system restart, or the like.

Accordingly, when data is written to the ACM 1011, it may not initially be “committed” per se (is not necessarily stored on a persistent memory media and/or state); rather, a pre-configured process is setup to preserve the ACM data and its state, if a restart event occurs while the ACM data is stored in the ACM 1011. The pre-configuring of this restart survival process is referred to herein as “arming.” The ACM 1011 may be capable of performing the pre-configured commit action autonomously and with a high degree of assurance, despite the system 1000 experiencing failure conditions or another restart event. As such, an entity that stores data on the ACM 1011 may consider the data to be “instantaneously committed” or safe from loss or corruption, at least as safe as if the data were stored in a non-volatile storage device such as a hard disk drive, tape storage media, or the like.

In embodiments where the ACM 1011 comprises a volatile memory media, the ACM 1011 may make the volatile memory media appear as a non-volatile memory, may present the volatile memory as a non-volatile medium, or the like, because the ACM 1011 preserves data, such as ACM data and/or ACM metadata 1015, across system restart events. The ACM 1011 may allow a volatile memory media to be used as a non-volatile memory media by determining that a trigger event, such as a restart or failure condition, has occurred, copying the contents of the volatile memory media to a non-volatile memory media during a hold-up time after the trigger event, and copying the contents back into the volatile memory media from the non-volatile memory media after the trigger event is over, power has been restored, the restart event has completed, or the like.

In one embodiment, the ACM 1011 is at least byte addressable. A memory media of the ACM 1011, in certain embodiments, may be natively byte addressable, directly providing the ACM 1011 with byte addressability. In another embodiment, a memory media of the ACM 1011 is not natively byte addressable, but a volatile memory media of the ACM 1011 is natively byte addressable, and the ACM 1011 writes or commits the contents of the byte addressable volatile memory media to the non-byte addressable memory media of the ACM 1011 in response to a trigger event, so that the volatile memory media renders the ACM 1011 byte addressable.

The ACM 1011 may be accessible to one or more computing devices, such as the host 1014. As used herein a computing device (such as the host 1014) refers to a computing device capable of accessing an ACM. The host 1014 may be a computing device that houses the ACM 1011 as a peripheral; the ACM 1011 may be attached to a system bus 1040 of the host 1014; the ACM 1011 may be in communication with the host 1014 over a data network; and/or the ACM 1011 may otherwise be in communication with the host 1014. The host 1014, in certain embodiments, may access the ACM 1011 hosted by another computing device. The access may be implemented using any suitable communication mechanism, including, but not limited to: CPU programmed IO (CPIO), port-mapped IO (PMIO), memory-mapped IO (MMIO), a Block interface, a PCI-e bus, Infiniband, RDMA, or the like. The host 1014 may comprise one or more ACM users 1016. As used herein, an ACM user 1016 refers to any operating system (OS), virtual operating platform (e.g., an OS with a hypervisor), a guest OS, application, process, thread, entity, utility, user, or the like, that is configured to access the ACM 1011.

The ACM 1011 may be physically located at one or more levels of the host 1014. In one embodiment, the ACM 1011 may be connected to a PCI-e bus and may be accessible to the host 1014 with MMIO. In another embodiment, the ACM 1011 may be directly accessible to a CPU of the host 1014 via a memory controller. For example, the ACM 1011 may be directly attached to and/or directly (e.g., Quick Path Interconnect (QPI)) in communication with a CPU of the host 1014 or the like. Volatile media of the ACM 1011 and non-volatile backing media of the ACM 1011, in certain embodiments, may not be physically co-located within the same apparatus, but may be in communication over a communications bus, a data network, or the like. In other embodiments, as described below, hardware components of the ACM 1011 may be tightly coupled, and integrated in a single physical hardware apparatus. Volatile memory media and/or non-volatile memory media of the ACM 1011, in one embodiment, may be integrated with, or may otherwise cooperate with, a CPU cache hierarchy of the host 1014, to take advantage of CPU caching technologies such as write combining or the like.

One or more ACM buffers 1013, in certain embodiments, may be mapped into an address range of a physical memory address space addressable by a CPU, a kernel, or the like of the host device 1014, such as the memory system 1018 described below. For example, one or more ACM buffers 1013 may be mapped as directly attached physical memory, as MMIO addressable physical memory over a PCI-e bus, or otherwise mapped as one or more pages of physical memory. At least a portion of the physically mapped ACM buffers 1013, in a further embodiment, may be mapped into a virtual memory address space, accessible to user-space processes or the like as virtual memory.

Allowing ACM users 1016 to directly address the ACM buffers 1013, in certain embodiments, bypasses one or more layers of the traditional operating system memory stack of the host device 1014, providing direct load/store operation access to kernel-space and/or user-space applications. An operating system, using a kernel module, an application programming interface, the storage management layer (SML) 1050 described below, or the like, in one embodiment, maps and unmaps ACM buffers 1013 to and from the memory system 1018 for one or more ACM users 1016, and the ACM users 1016 may directly access an ACM buffer 1013 once the operating system maps the ACM buffer 1013 into the memory system 1018. In a further embodiment, the operating system may also service system flush calls for the ACM buffers 1013, or the like.

The SML 1050 and/or the SML API 1019 described below, in certain embodiments, provide an interface for ACM users 1016, an operating system, and/or other entities to request certain ACM functions, such as a map function, an unmap function, a flush function, and/or other ACM functions. To perform a flush operation in response to a flush request, the ACM 1011 may perform a commit action for each ACM buffer 1013 associated with the flush request. Each ACM buffer 1013 is committed as indicated by the ACM metadata 1015 of the associated ACM buffer 1013. A flush function, in various embodiments, may be specific to one or more ACM buffers 1013, system-wide for all ACM buffers 1013, or the like. In one embodiment, a CPU, an operating system, or the like for the host 1014 may request an ACM flush operation in response to, or as part of a CPU cache flush, a system-wide data flush for the host 1014, or another general flush operation.

An ACM user 1016, an operating system, or the like may request a flush operation to maintain data consistency prior to performing a maintenance operation, such as a data snapshot or a backup, to commit ACM data prior to reallocating an ACM buffer 1013, to prepare for a scheduled restart event, or for other circumstances where flushing data from an ACM buffer 1013 may be beneficial. An ACM user 1016, an operating system, or the like, in certain embodiments, may request that the ACM 1011 map and/or unmap one or more ACM buffers 1013 to perform memory management for the ACM buffers 1013; to reallocate the ACM buffers 1013 between applications or processes; to allocate ACM buffers 1013 for new data, applications, or processes; to transfer use of the ACM buffers 1013 to a different host 1014 (in shared ACM 1011 embodiments); or to otherwise manipulate the memory mapping of the ACM buffers 1013. In another embodiment, the SML 1050 may dynamically allocate, map, and/or unmap ACM buffers 1013 using a resource management agent as described below.

Since the ACM 1011 is guaranteed to auto-commit the data stored thereon in the event of a trigger event, the host 1014 (or ACM user 1016) may view data written to the ACM 1011 as being instantaneously “committed” or non-volatile, as the host 1014 or ACM user 1016 may access the data both before and after the trigger event. Advantageously, while the restart event may cause the ACM user 1016 to be re-started or re-initialized the data stored in the ACM 1011 is in the same state/condition after the restart event as it was before the restart event. The host 1014 may, therefore, write to the ACM 1011 using memory write semantics (and at CPU speeds and granularity), without the need for explicit commit commands by relying on the pre-configured trigger of the ACM 1011 to commit the data in the event of a restart (or other trigger event).

The ACM 1011 may comprise a plurality of auto-commit buffers 1013, each comprising respective ACM metadata 1015. As discussed below, the ACM metadata 1015 may include data to facilitate committing of ACM data in response to a triggering event for the auto-commit buffer 1013, such as a logical identifier for data in the ACM buffer 1013, an identifier of a commit agent 1020, instructions for a commit process or other processing procedure, security data, or the like. The auto-commit buffers 1013 may be of any suitable size, from a single sector, page, byte, or the like, to a virtual or logical page size (e.g., 80 to 400 kb). The size of the auto-commit buffers 1013 may be adapted according to the storage capacity of the underlying non-volatile storage media, and or hold-up time available from the secondary power supply 1024.

In one embodiment, the ACM 1011 may advertise or present to the host 1014, to ACM users 1016, or the like, a storage capacity of the ACM buffers 1013 that is larger than an actual storage capacity of memory of the ACM buffers 1013. To provide the larger storage capacity, the ACM 1011 may dynamically map and unmap ACM buffers 1013 to the memory system 1018 and to the non-volatile backing memory of the ACM 1011, such as the non-volatile memory 110 described above. For example, the ACM 1011 may provide virtual address ranges for the ACM buffers 1013, and demand page data and/or ACM buffers 1013 to the non-volatile memory 110 as ACM buffer 1013 accesses necessitate. In another embodiment, for ACM buffers 1013 that are armed to commit to one or more predefined LBAs of the non-volatile memory 110, the ACM 1011 may dynamically move the ACM data and ACM metadata 1015 from the ACM buffers 1013 to the associated LBAs of the non-volatile memory 110, freeing storage capacity of the ACM buffers 1013 to provide a larger storage capacity. The ACM 1011 may further return the ACM data and ACM metadata 1015 back to one or more ACM buffers 1013 as ACM buffers become available, certain addresses outside the data of currently loaded ACM buffers 1013 is requested, or the like, managing storage capacity of the ACM buffers 1013.

The ACM 1011 is pre-configured or “armed” to implement one or more “triggered commit actions” in response to a restart condition (or other, pre-determined condition). As used herein, a restart condition or event may include, but is not limited to a software or hardware shutdown/restart of a host 1014, a failure in a host 1014 computing device, a failure of a component of the host 1014 (e.g., failure of the bus 1040), a software fault (e.g., an fault in software running on the host 1014 or other computing device), a loss of the primary power connection 1030, an invalid shutdown, or another event that may cause the loss of data stored in a volatile memory.

In one embodiment, a restart event comprises the act of the host 1014 commencing processing after an event that can cause the loss of data stored within a volatile memory of the host 1014 or a component in the host 1014. The host 1014 may commence/resume processing once the restart condition or event has finished, a primary power source is available, and the like.

The ACM 1011 is configured to detect that a restart event/condition has occurred and/or respond to a restart event by initiating a recovery stage. During a recovery stage, the ACM 1011 may restore the data of the ACM 1011 to the state prior to the restart event. Alternatively, or in addition, during the recovery stage, the ACM 1011 may complete processing of ACM data or ACM metadata 1015 needed to satisfy a guarantee that data in the ACM 1011 is available to ACM users after the restart event. Alternatively, or in addition, during the recovery stage, the ACM 1011 may complete processing of ACM data or ACM metadata 1015 needed to satisfy a guarantee that data in the ACM 1011 is committed after the restart event. As used herein, “commit” means data in the ACM 1011 is protected from loss or corruption even after the restart event and is persisted as required per the arming information associated with the data. In certain embodiments, the recovery stage includes processing ACM data and ACM metadata 1015 such that the ACM data is persisted, even though the restart event occurred.

As used herein, a triggered commit action is a pre-configured commit action that is armed to be performed by the ACM 1011 in response to a triggering event (e.g., a restart event, a flush command, or other pre-determined event). In certain embodiments, the triggered commit action persists at least enough ACM data and/or ACM metadata 1015 to make data of the ACM 1011 available after a system restart, to satisfy a guarantee of the ACM 1011 that the data will be accessible to an ACM user after a restart event, in certain embodiments, this guarantee is satisfied, at least in part, by committing and/or persisting data of the ACM 1011 to non-volatile memory media. A triggered commit action may be completed before, during, and/or after a restart event. For example, the ACM 1011 may write ACM data and ACM metadata 1015 to a predefined temporary location in the nonvolatile memory 110 during a hold-up time after a restart event, and may copy the ACM data back into the ACM buffers 1013, to an intended location in the nonvolatile memory 110, or perform other processing once the restart event is complete.

A triggered commit action may be “armed” when the ACM 1011 is requested and/or a particular ACM buffer 1013 is allocated for use by a host 1014. In some embodiments, an ACM 1011 may be configured to implement a triggered commit action in response to other, non-restart conditions. For example, an operation directed to a particular logical address (e.g., a poke), may trigger the ACM 1011, a flush operation may trigger the ACM 1011, or the like. This type of triggering may be used to commit the data of the ACM 1011 during normal operation (e.g., non-restart or non-failure conditions).

The arming may occur when an auto-commit buffer 1013 is mapped into the memory system 1018 of the host 1014. Alternatively, arming may occur as a separate operation. As used herein, arming an auto-commit buffer 1013 comprises performing the necessary configuration steps needed to complete the triggered action when the action is triggered. Arming may include, for example, providing the ACM metadata 1015 to the ACM 1011 or the like. In certain embodiments, arming further includes performing the necessary configuration steps needed to complete a minimal set of steps for the triggered action, such that the triggered action is capable of completing after a trigger event. In certain embodiments, arming further includes verifying the arming data (e.g., verifying that the contents of the auto-commit buffer 1013, or portion thereof, can be committed as specified in the ACM metadata 1015) and verifying that the ACM 1011 is capable and configured to properly perform the triggered action without error or interruption.

The verification may ensure that once armed, the ACM 1011 can implement the triggered commit action when required. If the ACM metadata 1015 cannot be verified (e.g., the logical identifier or other ACM metadata 1015 is invalid, corrupt, unavailable, or the like), the arming operation may fail; memory semantic operations on the auto-commit buffer 1013 may not be allowed unit the auto-commit buffer 1013 is successfully armed with valid ACM metadata 1015. For example, an auto-commit buffer 1013 that is backed by a hard disk having a one-to-one mapping between LBA and physical address, may fail to arm if the LBA provided for the arming operation does not map to a valid (and operational) physical address on the disk. Verification in this case may comprise querying the disk to determine whether the LBA has a valid, corresponding physical address and/or using the physical address as the ACM metadata 1015 of the auto-commit buffer 1013.

The armed triggered commit actions are implemented in response to the ACM 1011 (or other entity) detecting and/or receiving notification of a triggering event, such as a restart condition. In some embodiments, an armed commit action is a commit action that can be performed by the ACM 1011, and that requires no further communication with the host 1014 or other devices external to the “isolation zone” of the ACM 1011 (discussed below). Accordingly, the ACM 1011 may be configured to implement triggered commit actions autonomously of the host 1014 and/or other components thereof. The ACM 1011 may guarantee that triggered commit actions can be committed without errors and/or despite external error conditions. Accordingly, in some embodiments, the triggered commit actions of the ACM 1011 do not comprise and/or require potentially error-introducing logic, computations, and/or calculations. In some embodiments, a triggered commit action comprises committing data stored on the volatile ACM 1011 to a persistent storage location. In other embodiments, a triggered commit action may comprise additional processing of committed data, before, during, and/or after a triggering event, as described below. The ACM 1011 may implement pre-configured triggered commit actions autonomously; the ACM 1011 may be capable of implementing triggered commit actions despite failure or restart conditions in the host 1014, loss of primary power, or the like. The ACM 1011 can implement triggered commit actions independently due to arming the ACM 1011 as described above.

The ACM metadata 1015 for an ACM buffer 1013, in certain embodiments, identifies the data of the ACM buffer 1013. For example, the ACM metadata 1015 may identify an owner of the data, may describe the data itself, or the like. In one embodiment, an ACM buffer 1013 may have multiple levels of ACM metadata 1015, for processing by multiple entities or the like. The ACM metadata 1015 may include multiple nested headers that may be unpackaged upon restart, and used by various entities or commit agents 1020 to determine how to process the associated ACM data to fulfill the triggered commit action as described above. For example, the ACM metadata 1015 may include block metadata, file metadata, application level metadata, process execution point or callback metadata, and/or other levels of metadata. Each level of metadata may be associated with a different commit agent 1020, or the like. In certain embodiments, the ACM metadata 1015 may include security data, such as a signature for an owner of the associated ACM data, a pre-shared key, a nonce, or the like, which the ACM 1011 may use during recovery to verify that a commit agent 1020, an ACM user 1016, or the like is authorized to access committed ACM metadata 1015 and/or associated ACM data. In this manner, the ACM 1011 may prevent ownership spoofing or other unauthorized access. In one embodiment, the ACM 1011 does not release ACM metadata 1015 and/or associated ACM data until a requesting commit agent 1020, ACM user 1016, or the like provides valid authentication, such as a matching signature or the like.

One or more commit agents 1020, such as the commit management apparatus 1122 described below with regard to FIG. 3, in certain embodiments, process ACM data based on the associated ACM metadata 1015 to execute a triggered commit action. A commit agent 1020, in various embodiments, may comprise software, such as a device driver, a kernel module, the SML 1050, a thread, a user space application, or the like, and/or hardware, such as the controller 1004 described below, that is configured to interpret ACM metadata 1015 and to process the associated ACM data according to the ACM metadata 1015. In embodiments with multiple commit agents 1020, the ACM metadata 1015 may identify one or more commit agents 1020 to process the associated ACM data. The ACM metadata 1015 may identify a commit agent 1020, in various embodiments, by identifying a program/function of the commit agent 1020 to invoke (e.g., a file path of the program), by including computer executable code of the commit agent 1020 (e.g., binary code or scripts), by including a unique identifier indicating which of a set of registered commit agents 1020 to use, and/or by otherwise indicating a commit agent 1020 associated with committed ACM metadata 1015. The ACM metadata 1015, in certain embodiments, may be a functor or envelope which contains the information, such as function pointer and bound parameters for a commit agent 1020, to commit the ACM data upon restart recovery.

In one embodiment, a primary commit agent 1020 processes ACM metadata 1015, and hands-off or transfers ACM metadata 1015 and/or ACM data to one or more secondary commit agents 1020 identified by the ACM metadata 1015. A primary commit agent 1020, in one embodiment, may be integrated with the ACM 1011, the controller 1004, or the like. An ACM user 1016 or other third party, in certain embodiments, may provide a secondary commit agent 1020 for ACM data that the ACM user 1016 or other third party owns, and the primary commit agent 1020 may cooperate with the provided secondary commit agent 1020 to process the ACM data. The one or more commit agents 1020 for ACM data, in one embodiment, ensure and/or guarantee that the ACM data remains accessible to an owner of the ACM data after a restart event. As described above with regard to triggered commit actions, a commit agent 1020 may process ACM metadata 1015 and associated ACM data to perform one or more triggered commit actions before, during, and/or after a trigger event, such as a failure or other restart event.

In one embodiment, a commit agent 1020, in cooperation with the ACM 1011 or the like, may store the ACM metadata 1015 in a persistent or non-volatile location in response to a restart or other trigger event. The commit agent 1020 may store the ACM metadata 1015 at a known location, may store pointers to the ACM metadata 1015 at a known location, may provide the ACM metadata 1015 to an external agent or data store, or the like so that the commit agent 1020 may process the ACM metadata 1015 and associated ACM data once the restart or other trigger event has completed. The known location may include one or more predefined logical block addresses or physical addresses of the non-volatile memory 110, a predefined file, or the like. In certain embodiments, hardware of the ACM 1011 is configured to cooperate to write the ACM metadata 1015 and/or pointers to the ACM metadata 1015 at a known location. In one embodiment, the known location may be a temporary location that stores the ACM data and ACM metadata 1015 until the host 1014 has recovered from a restart event and the commit agent 1020 may continue to process the ACM data and ACM metadata 1015. In another embodiment, the location may be a persistent location associated with the ACM metadata 1015.

In response to completion of a restart event or other trigger event, during recovery, in one embodiment, a commit agent 1020 may locate and retrieve the ACM metadata 1015 from the non-volatile memory 110, from a predefined location or the like. The commit agent 1020, in response to locating and retrieving the ACM metadata 1015, locates the ACM data associated with the retrieved ACM metadata 1015. The commit agent 1020, in certain embodiments, may locate the ACM data in a substantially similar manner as the commit agent 1020 locates the ACM metadata 1015, retrieving ACM data from a predefined location, retrieving pointers to the ACM data from a predefined location, receiving the ACM data from an external agent or data store, or the like. In one embodiment, the ACM metadata 1015 identifies the associated ACM data and the commit agent 1020 uses the ACM metadata 1015 to locate and retrieve the associated ACM data. For example, the commit agent 1020 may use a predefined mapping to associate ACM data with ACM metadata 1015 (e.g the Nth piece of ACM data may be associated with the Nth piece of ACM metadata 1015 or the like), the ACM metadata 1015 may include a pointer or index for the associated ACM data, or another predefined relationship may exist between committed ACM metadata 1015 and associated ACM data. In another embodiment, an external agent may indicate to the commit agent 1020 where associated ACM data is located.

In response to locating and retrieving the ACM metadata 1015 and associated ACM data, the commit agent 1020 interprets the ACM metadata 1015 and processes the associated ACM data based on the ACM metadata 1015. For example, in one embodiment, the ACM metadata 1015 may identify a block storage volume and LBA(s) where the commit agent 1020 is to write the ACM data upon recovery. In another embodiment, the ACM metadata 1015 may identify an offset within a file within a file system where the commit agent 1020 is to write the ACM data upon recovery. In a further embodiment, the ACM metadata 1015 may identify an application specific persistent object where the commit agent 1020 is to place the ACM data upon recovery, such as a database record or the like. The ACM metadata 1015, in an additional embodiment, may indicate a procedure for the commit agent 1020 to call to process the ACM data, such as a delayed procedure call or the like. In an embodiment where the ACM 1011 advertises or presents volatile ACM buffers 1013 as nonvolatile memory, the ACM metadata 1013 may identify an ACM buffer 1013 where the commit agent 1020 is to write the ACM data upon recovery.

In certain embodiments, the ACM metadata 1015 may identify one or more secondary commit agents 1020 to further process the ACM metadata 1015 and/or associated ACM data. A secondary commit agent 1020 may process ACM metadata 1015 and associated ACM data in a substantially similar manner to the commit agent 1020 described above. Each commit agent 1020 may process ACM data in accordance with a different level or subset of the ACM metadata 1015, or the like. The ACM metadata 1015 may identify a secondary commit agent 1020, in various embodiments, by identifying a program/function of the secondary commit agent 1020 to invoke (e.g., a file path of the program), by including computer executable code of the secondary commit agent 1020, by including a unique identifier indicating which of a set of registered secondary commit agents 1020 to use, and/or by otherwise indicating a secondary commit agent 1020 associated with committed ACM metadata 1015.

In one embodiment, a secondary commit agent 1020 processes a remaining portion of the ACM metadata 1015 and/or of the ACM data after a previous commit agent 1020 has processed the ACM metadata 1015 and/or the ACM data. In a further embodiment, the ACM metadata 1015 may identify another non-volatile medium separate from the ACM 1011 for the secondary commit agent 1020 to persist the ACM data even after a host experiences a restart event. By committing the ACM metadata 1015 and the associated ACM data from the ACM buffers 1013 in response to a trigger event, such as a failure or other restart condition, and processing the ACM metadata 1015 and the associated ACM data once the trigger event has completed or recovered, the ACM 1011 may guarantee persistence of the ACM data and/or performance of the triggered commit action(s) defined by the ACM metadata 1015.

The ACM 1011 is communicatively coupled to a host 1014, which, like the host 114 described above, may comprise operating systems, virtual machines, applications, a processor complex 1012, a central processing unit 1012 (CPU), and the like. In the FIG. 2 example, these entities are referred to generally as ACM users 1016. Accordingly, as used herein, an ACM user may refer to an operating system, a virtual machine operating system (e.g., hypervisor), an application, a library, a CPU fetch-execute algorithm, or other program or process. The ACM 1011 may be communicatively coupled to the host 1014 (as well as the ACM users 1016) via a bus 1040, such as a system bus, a processor's memory exchange bus, or the like (e.g., HyperTransport, QuickPath Interconnect (QPI), PCI bus, PCI-e bus, or the like). In some embodiments, the bus 1040 comprises the primary power connection 1030 (e.g., the non-volatile storage device 1102 may be powered through the bus 1040). Although some embodiments described herein comprise solid-state storage devices, such as certain embodiments of the non-volatile storage device 1102, the disclosure is not limited in this regard, and could be adapted to use any suitable recording/memory/storage device 1102 and/or recording/memory/storage media 1110.

The ACM 1011 may be tightly coupled to the device used to perform the triggered commit actions. For example, the ACM 1011 may be implemented on the same device, peripheral, card, or within the same “isolation zone” as the controller 1004 and/or secondary power source 1024. The tight coupling of the ACM 1011 to the components used to implement the triggered commit actions defines an “isolation zone,” which may provide an acceptable level of assurance (based on industry standards or other metric) that the ACM 1011 is capable of implementing the triggered auto-commit actions in the event of a restart condition. In the FIG. 2 example, the isolation zone of the ACM 1011 is provided by the tight coupling of the ACM 1011 with the autonomous controller 1004 and secondary power supply 1024 (discussed below).

The controller 1004 may comprise an I/O controller, such as a network controller (e.g., a network interface controller), storage controller, dedicated restart condition controller, or the like. The controller 1004 may comprise firmware, hardware, a combination of firmware and hardware, or the like. In the FIG. 2 example, the controller 1004 comprises a storage controller, such as the storage controller 104 and/or non-volatile storage device controller described above. The controller 1004 may be configured to operate independently of the host 1014. As such, the controller 1004 may be used to implement the triggered commit action(s) of the ACM 1011 despite the restart conditions discussed above, such as failures in the host 1014 (and/or ACM users 1016) and/or loss of the primary power connection 1030.

The ACM 1011 is powered by a primary power connection 1030, which, like the primary power connection 130 described above, may be provided by a system bus (bus 1040), external power supply, the host 1014, or the like. In certain embodiments, the ACM 1011 also includes and/or is coupled to a secondary power source 1024. The secondary power source 1024 may power the ACM 1011 in the event of a failure to the primary power connection 1030. The secondary power source 1024 may be capable of providing at least enough power to enable the ACM 1011 and/or controller 1004 to autonomously implement at least a portion of a pre-configured triggered commit action(s) when the primary power connection 1030 has failed. The ACM 1011, in one embodiment, commits or persists at least enough data (e.g., ACM data and ACM metadata 1015) while receiving power from the secondary power source 1024, to allow access to the data once the primary power connection 1030 has been restored. In certain embodiments, as described above, the ACM 1011 may perform at least a portion of the pre-configured triggered commit action(s) after the primary power connection 1030 has been restored, using one or more commit agents 1020 or the like.

The ACM 1011 may comprise volatile memory storage. In the FIG. 2 example, the ACM 1011 includes one or more auto-commit buffers 1013. The auto-commit buffers 1013 may be implemented using a volatile Random Access Memory (RAM). In some embodiments, the auto-commit buffers 1013 may be embodied as independent components of the ACM 1011 (e.g., in separate RAM modules). Alternatively, the auto-commit buffers 1013 may be implemented on embedded volatile memory (e.g., BRAM) available within the controller 1004, a processor complex 1012, an FPGA, or other component of the ACM 1011.

Each of the auto-commit buffers 1013 may be pre-configured (armed) with a respective triggered commit action. In some embodiments, each auto-commit buffer 1013 may comprise its own, respective ACM metadata 1015. The ACM metadata 1015, in some embodiments, identifies how and/or where the data stored on the auto-commit buffer 1013 is to be committed. In some examples, the ACM metadata 1015 may comprise a logical identifier (e.g., an object identifier, logical block address (LBA), file name, or the like) associated with the data in the auto-commit buffer 1013. The logical identifier may be predefined. In one embodiment, when an auto-commit buffer 1013 is committed, the data therein may be committed with the ACM metadata 1015 (e.g., the data may be stored at a physical storage location corresponding to the logical identifier and/or in association with the logical identifier). To facilitate committing of ACM data during a hold-up time after a restart event, the ACM 1011 may write ACM data and ACM metadata 1015 in a single atomic operation, such as a single page write or the like. To permit writing of ACM and ACM metadata 1015 in a single atomic operation, the ACM buffers 1013 may be sized to correspond to a single write unit for a non-volatile storage media that is used by the ACM 1011. In some embodiments, the ACM metadata 1015 may comprise a network address, an LBA, or another identifier of a commit location for the data.

In a further embodiment, a logical identifier may associate data of an auto-commit buffer 1013 with an owner of the data, so that the data and the owner maintain the ownership relationship after a restart event. For example, the logical identifier may identify an application, an application type, a process ID, an ACM user 1016, or another entity of a host device 1014, so that the ACM data is persistently associated with the identified entity. In one embodiment, a logical identifier may be a member of an existing namespace, such as a file system namespace, a user namespace, a process namespace, or the like. In other embodiments, a logical identifier may be a member of a new or separate namespace, such as an ACM namespace. For example, a globally unique identifier namespace, as is typically used in distributed systems for identifying communicating entities, may be used as an ACM namespace for logical identifiers. The ACM 1011 may process committed ACM data according to a logical identifier for the data once a restart event has completed. For example, the ACM 1011 may commit the ACM data to a logical identifier associated with a temporary location in response to a restart event, and may write the ACM data to a persistent location identified by another logical identifier during recovery after the restart event.

As described above, the ACM 1011 may be tightly coupled with the components used to implement the triggered commit actions (e.g., the ACM 1011 is implemented within an “isolation zone”), which ensures that the data on the ACM 1011 will be committed in the event of a restart condition. As used herein, a “tight coupling” refers to a configuration wherein the components used to implement the triggered commit actions of the ACM 1011 are within the same “isolation zone,” or two or more distinct trusted “isolation zones,” and are configured to operate despite external failure or restart conditions, such as the loss of power, invalid shutdown, host 1014 failures, or the like. FIG. 2 illustrates a tight coupling between the ACM 1011, the auto-commit buffers 1013, the controller 1004, which is configured to operate independently of the host 1014, and the secondary power source 1024, which is configured to power the controller 1004 and the ACM 1011 (including the auto-commit buffers 1013) while the triggered commit actions are completed. Examples of a tight coupling include but are not limited to including the controller 1004, the secondary power source 1024, and the auto-commit buffers 1013 on a single printed circuit board (PCB), within a separate peripheral in electronic communication with the host 1014, and the like. In other embodiments, the ACM 1011 may be tightly coupled to other a different set of components (e.g., redundant host devices, redundant communication buses, redundant controllers, alternative power supplies, and so on).

The ACM 1011 may be accessible by the host 1014 and/or ACM users 1016 running thereon. Access to the ACM 1011 may be provided using memory access semantics, such as CPU load/store commands, DMA commands, 3rd party DMA commands, RDMA commands, atomic test and set commands, manipulatable memory pointers, and so on. In some embodiments, memory semantic access to the ACM 1011 is implemented over the bus 1040 (e.g., using a PCI-e BAR as described below).

In a memory semantic paradigm, ACM users 1016 running on the host 1014 may access the ACM 1011 via a memory system 1018 of the host 1014. The memory system 1018 may comprise a memory management unit, virtual memory system, virtual memory manager, virtual memory subsystem (or similar memory address space) implemented by an operating system, a virtualization system (e.g., hypervisor), an application, or the like. A portion of the ACM 1011 (e.g., one or more auto-commit buffers 1013) may be mapped into the memory system 1018, such that memory semantic operations implemented within the mapped memory address range (ACM address range 1021) are performed on the ACM 1011.

The SML 1050, in certain embodiments, allocates and/or arbitrates the storage capacity of the ACM 1011 between multiple ACM users 1016, using a resource management agent or the like. The resource management agent of the SML 1050 may comprise a kernel module provided to an operating system of the host device 1014, a device driver, a thread, a user space application, or the like. In one embodiment, the resource management agent determines how much storage capacity of the ACM buffers 1013 to allocate to an ACM user 1016 and how long the allocation is to last. Because, in certain embodiments, the ACM 1011 commits or persists data across restart events, the resource management agent may allocate storage capacity of ACM buffers 1013 across restart events.

The resource management agent may assign different ACM buffers 1013 to different ACM users 1016, such as different kernel and/or user space applications. The resource management agent may allocate ACM buffers 1013 to different usage types, may map ACM buffers 1013 to different non-volatile memory 110 locations for destaging, or the like. In one embodiment, the resource management agent may allocate the ACM buffers 1013 based on commit agents 1020 associated with the ACM buffers 1013 by the ACM metadata 1015 or the like. For example, a master commit agent 1020 may maintain an allocation map in ACM metadata 1015 identifying allocation information for ACM buffers 1013 of the ACM 1011 and identifying, in one embodiment, one or more secondary commit agents 1020, and the master commit agent 1020 may allocate a portion of the ACM buffers 1013 to each of the secondary commit agents 1020. In another embodiment, commit agents 1020 may register with the resource management agent, may request resources such as ACM buffers 1013 from the resource management agent, or the like. The resource management agent may use a predefined memory management policy, such as a memory pressure policy or the like, to allocate and arbitrate ACM buffer 1013 storage capacity between ACM users 1016.

In some embodiments, establishing an association between an ACM address range 1021 within the memory system 1018 and the ACM 1011 may comprise pre-configuring (arming) the corresponding auto-commit buffer(s) 1013 with a triggered commit action. As described above, this pre-configuration may comprise associating the auto-commit buffer 1013 with a logical identifier or other metadata, which may be stored in the ACM metadata 1015 of the buffer 1013. As described above, the ACM 1011 may be configured to commit the buffer data to the specified logical identifier in the event of a restart condition, or to perform other processing in accordance with the ACM metadata 1015.

Memory semantic access to the ACM 1011 may be implemented using any suitable address and/or device association mechanism. In some embodiments, memory semantic access is implemented by mapping one or more auto-commit buffers 1013 of the ACM 1011 into the memory system 1018 of the host 1014. In some embodiments, this mapping may be implemented using the bus 1040. For example, the bus 1040 may comprise a PCI-e (or similar) communication bus, and the mapping may comprise associating a Base Address Register (BAR) of an auto-commit buffer 1013 of the ACM 1011 on the bus 1040 with the ACM address range 1021 in the memory system 1018 (e.g., the host 1014 mapping a BAR into the memory system 1018).

The association may be implemented by an ACM user 1016 (e.g., by a virtual memory system of an operating system or the like), through an API of a storage layer, such as the storage management layer (SML) 1050. The SML 1050 may be configured to provide access to the auto-commit memory 1011 to ACM users 1016. The storage management layer 1050 may comprise a driver, kernel-level application, user-level application, library, or the like. One example of an SML is the Virtual Storage Layer® of Fusion-io, Inc. of Salt Lake City, Utah. The SML 1050 may provide a SML API 1019 comprising, inter alia, an API for mapping portions of the auto-commit memory 1011 into the memory system 1018 of the host 1014, for unmapping portions of the auto-commit memory 1011 from the memory system 1018 of the host 1014, for flushing the ACM buffers 1013, and the like. The SML 1050 may be configured to maintain metadata 1051, which may include a forward index 1053 comprising associations between logical identifiers of a logical address space and physical storage locations on the auto-commit memory 1011 and/or persistent storage media. In some embodiments, ACM 1011 may be associated with one or more virtual ranges that map to different address ranges of a BAR (or other addressing mechanism). The virtual ranges may be accessed (e.g., mapped) by different ACM users 1016. Mapping or exposing a PCI-e ACM BAR to the host memory 1018 may be enabled on demand by way of a SML API 1019 call.

The SML API 1019 may comprise interfaces for mapping an auto-commit buffer 1013 into the memory system 1018. In some embodiments, the SML API 1019 may extend existing memory management interfaces, such as malloc, calloc, or the like, to map auto-commit buffers 1013 into the virtual memory range of ACM user applications 1016 (e.g., a malloc call through the SML API 1019 may map one or more auto-commit buffers 1013 into the memory system 1018). Alternatively, or in addition, the SML API 1019 may comprise one or more explicit auto-commit mapping functions, such as “ACM_alloc,” “ACM_free,” or the like. Mapping an auto-commit buffer 1013 may further comprise configuring a memory system 1018 of the host to ensure that memory operations are implemented directly on the auto-commit buffer 1013 (e.g., prevent caching memory operations within a mapped ACM address range 1021).

The association between the ACM address range 1021 within the host memory system 1018 and the ACM 1011 may be such that memory semantic operations performed within a mapped ACM address range 1021 are implemented directly on the ACM 1011 (without intervening system RAM, or other intermediate memory, in a typical write commit operation, additional layers of system calls, or the like). For example, a memory semantic write operation implemented within the ACM address range 1021 may cause data to be written to the ACM 1011 (on one or more of the auto-commit buffers 1013). Accordingly, in some embodiments, mapping the ACM address range 1021 may comprise disabling caching of memory operations within the ACM address range 1021, such that memory operations are performed on an ACM 1011 and are not cached by the host (e.g., cached in a CPU cache, in host volatile memory, or the like). Disabling caching within the ACM address range 1021 may comprise setting a “non-cacheable” flag attribute associated with the ACM range 1021, when the ACM range 1021 is defined.

As discussed above, establishing an association between the host memory system 1018 and the ACM 1011 may comprise “arming” the ACM 1011 to implement a pre-determined triggered commit action. The arming may comprise providing the ACM 1011 with a logical identifier (e.g., a logical block address, a file name, a network address, a stripe or mirroring pattern, or the like). The ACM 1011 may use the logical identifier to arm the triggered commit action. For example, the ACM 1011 may be triggered to commit data to a persistent storage medium using the logical identifier (e.g., the data may be stored at a physical address corresponding to the logical identifier and/or the logical identifier may be stored with the data in a log-based data structure). Arming the ACM 1011 allows the host 1014 to view subsequent operations performed within the ACM address range 1021 (and on the ACM 1011) as being “instantly committed,” enabling memory semantic write granularity (e.g., byte level operations) and speed with instant commit semantics.

Memory semantic writes such as a “store” operation for a CPU are typically synchronous operations such that the CPU completes the operation before handling a subsequent operation. Accordingly, memory semantic write operations performed in the ACM memory range 1021 can be viewed as “instantly committed,” obviating the need for a corresponding “commit” operation in the write-commit operation, which may significantly increase the performance of ACM users 1016 affected by write-commit latency. The memory semantic operations performed within the ACM memory range 1021 may be synchronous. Accordingly, ACM 1011 may be configured to prevent the memory semantic operations from blocking (e.g., waiting for an acknowledgement from other layers, such as the bus 1040, or the like). Moreover, the association between ACM address range 1021 and the ACM 1011 allow memory semantic operations to bypass system calls (e.g., separate write and commit commands and their corresponding system calls) that are typically included in write-commit operations.

Data transfer between the host 1014 and the ACM 1011 may be implemented using any suitable data transfer mechanism including, but not limited to: the host 1014 performing processor IO operations (PIO) with the ACM 1011 via the bus 1040; the ACM 1011 (or other device) providing one or more DMA engines or agents (data movers) to transfer data between the host 1014 and the ACM 1011; the host 1014 performing processor cache write/flush operations; or the like.

As discussed above, an ACM may be configured to automatically perform a pre-configured triggered commit action in response to detecting certain conditions (e.g., restart or failure conditions). In some embodiments, the triggered commit action may comprise committing data stored on the ACM 1014 to a persistent storage media. Accordingly, in some embodiments, an ACM, such as the ACM 1011 described above, may be comprise persistent storage media. FIG. 3 is a block diagram of a system 1100 depicting an embodiment of an ACM configured to implement triggered commit actions, which may include committing data to a persistent, solid-state, and/or non-volatile storage.

The ACM 1111 of the FIG. 3 example may be tightly coupled to the non-volatile storage device 1102, which comprises a controller 1104. The controller 1104 may comprise a write data pipeline 1106 and a read data pipeline 1108, which may operate as described above. The non-volatile storage device 1102 may be capable of persisting data on a non-volatile memory 1110, such as solid-state storage media.

A commit management apparatus 1122 is used to commit data to the non-volatile memory 1110 in response to a trigger event, such as loss of primary power connection, or other pre-determined trigger event. Accordingly, the commit management apparatus 1122 may comprise and/or be configured to perform the functions of the power management apparatus 122 described above. The commit management apparatus 1122 may be further configured to commit data on the ACM 1111 (e.g., the contents of the auto-commit buffers 1013) to the non-volatile memory 1110 in response to a restart condition (or on request from the host 1014 and/or ACM users 1016) and in accordance with the ACM metadata 1015. The commit management apparatus 1122 is one embodiment of a commit agent 1020.

The data on the ACM 1111 may be committed to the persistent storage 1110 in accordance with the ACM metadata 1015, such as a logical identifier or the like. The ACM 1111 may commit the data to a temporary location for further processing after a restart event, may commit the data to a final intended location, or the like as, described above. If the non-volatile memory 1110 is sequential storage device, committing the data may comprise storing the logical identifier or other ACM metadata 1015 with the contents of the auto-commit buffer 1013 (e.g., in a packet or container header). If the non-volatile memory 1110 comprises a hard disk having a 1:1 mapping between logical identifier and physical address, the contents of the auto-commit buffer 1013 may be committed to the storage location to which the logical identifier maps. Since the logical identifier or other ACM metadata 1015 associated with the data is pre-configured (e.g., armed), the ACM 1111 implements the triggered commit action independently of the host 1014. The secondary power supply 1024 supplies power to the volatile auto-commit buffers 1013 of the ACM 1111 until the triggered commit actions are completed (and/or confirmed to be completed), or until the triggered commit actions are performed to a point at which the ACM 1111 may complete the triggered commit actions during recovery after a restart event.

In some embodiments, the ACM 1111 commits data in a way that maintains an association between the data and its corresponding logical identifier (per the ACM metadata 1015). If the non-volatile memory 1110 comprises a hard disk, the data may be committed to a storage location corresponding to the logical identifier, which may be outside of the isolation zone 1301 (e.g., using a logical identifier to physical address conversion). In other embodiments in which the non-volatile memory 1110 comprises a sequential media, such as solid-state storage media, the data may be stored sequentially and/or in a log-based format as described in above and/or in U.S. Provisional Patent Application Publication No. 61/373,271, entitled “APPARATUS, SYSTEM, AND METHOD FOR CACHING DATA,” and filed 12 Aug. 2010, which is hereby incorporated by reference in its entirety. The sequential storage operation may comprise storing the contents of an auto-commit buffer 1013 with a corresponding logical identifier (as indicated by the ACM metadata 1015). In one embodiment, the data of the auto-commit buffer 1013 and the corresponding logical identifier are stored together on the media according to a predetermined pattern. In certain embodiments, the logical identifier is stored before the contents of the auto-commit buffer 1013. The logical identifier may be included in a header of a packet comprising the data, or in another sequential and/or log-based format. The association between the data and logical identifier may allow a data index to be reconstructed as described above.

As described above, the auto-commit buffers 1013 of the ACM 1011 may be mapped into the memory system 1018 of the host 1014, enabling the ACM users 1016 of access these buffers 1013 using memory access semantics. In some embodiments, the mappings between logical identifiers and auto-commit buffers 1013 may leverage a virtual memory system of the host 1014.

For example, an address range within the memory system 1018 may be associated with a “memory mapped file.” As discussed above, a memory mapped file is a virtual memory abstraction in which a file, portion of a file, or block device is mapped into the memory system 1018 address space for more efficient memory semantic operations on data of the non-volatile storage device 1102. An auto-commit buffer 1013 may be mapped into the host memory system 1018 using a similar abstraction. The ACM memory range 1021 may, therefore, be represented by a memory mapped file. The backing file must be stored on the non-volatile memory 1110 within the isolation zone 1301 (See FIG. 5 below) or another network attached non-volatile storage device 1102 also protected by an isolation zone 1301. The auto-commit buffers 1013 may correspond to only a portion of the file (the file itself may be very large, exceeding the capacity of the auto-commit buffers 1013 and/or the non-volatile memory 1110). When a portion of a file is mapped to an auto-commit buffer 1013, the ACM user 1016 (or other entity) may identify a desired offset within the file and the range of blocks in the file that will operate with ACM characteristics (e.g., have ACM semantics). This offset will have a predefined logical identifier and the logical identifier and range may be used to trigger committing the auto-commit buffer(s) 1013 mapped within the file. Alternatively, a separate offset for a block (or range of blocks) into the file may serve as a trigger for committing the auto-commit buffer(s) 1013 mapped to the file. For example, anytime a memory operation (load, store, poke, etc.) is performed on data in the separate offset or range of blocks may result in a trigger event that causes the auto-commit buffer(s) 1013 mapped to the file to be committed.

The underlying logical identifier may change, however (e.g., due to changes to other portions of the file, file size changes, etc.). When a change occurs, the SML 1050 (via the SML API 1019, an ACM user 1016, or other entity) may update the ACM metadata 1015 of the corresponding auto-commit buffers 1013. In some embodiments, the SML 1050 may be configured to query the host 1014 (operating system, hypervisor, or other application) for updates to the logical identifier of files associated with auto-commit buffers 1013. The queries may be initiated by the SML API 1019 and/or may be provided as a hook (callback mechanism) into the host 1014. When the ACM user 1016 no longer needs the auto-commit buffer 1013, the SML 1050 may de-allocate the buffer 1013 as described above. De-allocation may further comprise informing the host 1014 that updates to the logical identifier are no longer needed.

In some embodiments, a file may be mapped across multiple storage devices (e.g., the storage devices may be formed into a RAID group, may comprise a virtual storage device, or the like). Associations between auto-commit buffers 1013 and the file may be updated to reflect the file mapping. This allows the auto-commit buffers 1013 to commit the data to the proper storage device. The ACM metadata 1015 of the auto-commit buffers 1013 may be updated in response to changes to the underlying file mapping and/or partitioning as described above. Alternatively, the file may be “locked” to a particular mapping or partition while the auto-commit buffers 1013 are in use. For example, if a remapping/repartitioning of a file is required, the corresponding auto-commit buffers 1013 may commit data to the file, and then be re-associated with the file under the new mapping/partitioning scheme. The SML API 1019 may comprise interfaces and/or commands for using the SML 1050 to lock a file, release a file, and/or update ACM metadata 1015 in accordance with changes to a file.

Committing the data to solid-state, non-volatile storage 1110 may comprise the storage controller 1104 accessing data from the ACM 1111 auto-commit buffers 1013, associating the data with the corresponding logical identifier (e.g., labeling the data), and injecting the labeled data into the write data pipeline 1106 as described above. In some embodiments, to ensure there is a page program command capable of persisting the ACM data, the storage controller 1104 maintains two or more pending page programs during operation. The ACM data may be committed to the non-volatile memory 1110 before writing the power loss identifier (power-cut fill pattern) described above.

FIG. 4 depicts one embodiment of a system 1200 comprising a plurality of auto-commit memories. In the FIG. 4 example, memory semantic accesses implemented by the host 1014 may be stored on a plurality of ACMs, including 1011A and 1011B. In some embodiments, host data may be mirrored between the ACMs 1011A and 1011B. The mirroring may be implemented using a multi-cast bus 1040. Alternatively, or in addition, one of the ACMs (AM 1011A) may be configured to rebroadcast data to the ACM 1011B. The ACMs 1011A and 1011B may be local to one another (e.g., on the same local bus). Alternatively, the ACMs 1011A and 1011B may located on different systems, and may be communicatively coupled via a bus that supports remove data access, such as Infiniband, a remote PCI bus, RDMA, or the like.

In some embodiments, the ACMs 1011A and 1011B may implement a striping scheme (e.g., a RAID scheme). In this case, different portions of the host data may be sent to different ACMs 1011A and/or 1011B. Driver level software, such as a volume manager implemented by the SML 1050 and/or operating system 1018 may map host data to the proper ACM per the striping pattern.

In some configurations, the memory access semantics provided by the ACMs may be adapted according to a particular storage striping pattern. For example, if host data is mirrored from the ACM 1011A to the ACM 1011B, a memory semantic write may not complete (and/or an acknowledgement may not be returned) until the ACM 1011A verifies that the data was sent to the ACM 1011B (under the “instant commit” semantic). Similar adaptations may be implemented when ACMs are used in a striping pattern (e.g., a memory semantic write may be not return and/or be acknowledged, until the striping pattern for a particular operation is complete). For example, in a copy on write operation, the ACM 1011A may store the data of an auto-commit buffer, and then cause the data to be copied to the ACM 1011B. The ACM 1011A may not return an acknowledgment for the write operation (or allow the data to be read) until the data is copied to the ACM 1011B.

The use of mirrored ACM devices 1011A and 1011B may be used in a high-availability configuration. For example, the ACM devices 1011A and 1011B may be implemented in separate host computing devices. Memory semantic accesses to the devices 1011A and 1011B are mirrored between the devices as described above (e.g., using PCI-e access). The devices may be configured to operate in high-availability mode, such that device proxying may not be required. Accordingly, trigger operations (as well as other memory semantic accesses) may be mirrored across both devices 1011A and 1011B, but the devices 1011A and 1011B may not have to wait for a “acknowledge” from the other before proceeding, which removes the other device from the write-commit latency path.

FIG. 5 is a block diagram of a one embodiment 1300 of a commit management apparatus 1122. The commit management apparatus 1122 may be tightly coupled (e.g., within an isolation zone 1301) to the auto-commit memory 1011, the non-volatile storage controller 1304, the non-volatile storage media 1310, and/or the secondary power supply 1324. The tight coupling may comprise implementing these components 132, 1011, 1304, 1310, and/or 1324 on the same die, the same peripheral device, on the same card (e.g., the same PCB), within a pre-defined isolation zone, or the like. The tight coupling may ensure that the triggered commit actions of the ACM buffers 1013 are committed in the event of a restart condition.

The commit management apparatus 1122 includes a monitor module 1310, which may be configured to detect restart conditions, such as power loss or the like. The monitor module 1310 may be configured to sense triggering events, such as restart conditions (e.g., shutdown, restart, power failures, communication failures, host or application failures, and so on) and, in response, to initiate the commit module 1320 to initiate the commit loss mode of the apparatus 1122 (failure loss mode) and/or to trigger the operations of other modules, such as modules 1312, 1314, 1316, 1317, and/or 1318. The commit module 1320 includes an identification module 1312, terminate module 1314, corruption module 1316, and completion module 1318, which may operate as described above.

The identification module 1312 may be further configured to identify triggered commit actions to be performed for each ACM buffer 1013 of the ACM 1011. As discussed above, the identification module 1312 may prioritize operations based on relative importance, with acknowledged operations being given a higher priority than non-acknowledged operations. The contents of auto-commit buffers 1013 that are armed to be committed may be assigned a high priority due to the “instant commit” semantics supported thereby. In some embodiments, the ACM triggered commit actions may be given a higher priority than the acknowledged contents of the write data pipeline 1306. Alternatively, the contents of armed auto-commit buffers 1013 may be assigned the “next-highest’ priority. The priority assignment may be user configurable (via an API, IO control (IOCTRL), or the like).

The termination module 1314 terminates non-essential operations to allow “essential” to continue as described above. The termination module 1314 may be configured to hold up portions of the ACM 1011 that are “armed” to be committed (e.g., armed auto-commit buffers), and may terminate power to non-armed (unused) portions of the auto-commit memory 1011. The termination module 1314 may be further configured to terminate power to portions of the ACM 1011 (individual auto-commit buffers 1013) as the contents of those buffers are committed.

The corruption module 1316 identifies corrupt (or potentially corrupt) data in the write data pipeline 1306 as described above. The module 1316 may be further configured to identify corrupt ACM data 1011 (data that was written to the ACM 1011 during a power disturbance or other restart condition). The corruption module 1316 may be configured to prevent corrupt data on the ACM 1011 from being committed in a triggered commit action.

An ACM module 1317 is configured to access armed auto-commit buffers in the auto-commit memory 1011, identify the ACM metadata 1015 associated therewith (e.g., label the data with the corresponding logical identifier per the ACM metadata 1015), and inject the data (and metadata) into the write data pipeline of the non-volatile storage controller 1304. In some embodiments, the logical identifier (or other ACM metadata 1015) of the auto-commit buffer 1013 may be stored in the buffer 1013 itself. In this case, the contents of the auto-commit buffer 1013 may be streamed directly into a sequential and/or log-based storage device without first identifying and/or labeling the data. The ACM module 1317 may inject data before or after data currently in the write data pipeline 1306. In some embodiments, data committed from the ACM 1011 is used to “fill out” the remainder of a write buffer of the write data pipeline 1306 (after removing potentially corrupt data). If the remaining capacity of the write buffer is insufficient, the write buffer is written to the non-volatile storage 1310, and a next write buffer is filled with the remaining ACM data.

As discussed above, in some embodiments, the non-volatile storage controller 1304 may maintain an armed write operation (logical page write) to store the contents of the write data pipeline 1306 in the event of power loss. When used with an ACM 1011, two (or more) armed write operations (logical page writes) may be maintained to ensure the contents of both the write data pipeline 1306, and all the armed buffers 1013 of the ACM 1011 can be committed in the event of a restart condition. Because a logical page in a write buffer may be partially filled when a trigger event occurs, the write buffer is sized to hold at least one more logical page of data than the total of all the data stored in all ACM buffers 1013 of the ACM 1011 and the capacity of data in the write data pipeline that has been acknowledged as persisted. In this manner, there will be sufficient capacity in the write buffer to complete the persistence of the ACM 1011 in response to a trigger event. Accordingly, the auto-commit buffers 1013 may be sized according to the amount of data the ACM 1011 is capable of committing. Once this threshold is met, the SML 1050 may reject requests to use ACM buffers 1013 until more become available.

The completion module 1318 is configured to flush the write data pipeline regardless of whether the certain buffers, packets, and/or pages are completely filled. The completion module 1318 is configured to perform the flush (and insert the related padding data) after data on the ACM 1011 (if any) has been injected into the write data pipeline 1306. The completion module 1318 may be further configured to inject completion indicator into the write data pipeline, which may be used to indicate that a restart condition occurred (e.g., a restart condition fill pattern). This fill pattern may be included in the write data pipeline 1306 after injecting the triggered data from the ACM 1011.

As discussed above, the secondary power supply 1324 may be configured to provide sufficient power to store the contents of the ACM 1011 as well as data in the write data pipeline 1306. Storing this data may comprise one or more write operations (e.g., page program operations), in which data is persistently stored on the non-volatile storage media 1310. In the event a write operation fails, another write operation, on a different storage location, may be attempted. The attempts may continue until the data is successfully persisted on the non-volatile storage media 1310. The secondary power supply 1324 may be configured to provide sufficient power for each of a plurality of such page program operations to complete. Accordingly, the secondary power supply 1324 may be configured to provide sufficient power to complete double (or more) page program write operations as required to store the data of the ACM 1011 and/or write data pipeline 1306.

FIG. 6 is a block diagram 1500 depicting a host computing device 1014 accessing an ACM using memory access semantics. The host computing device 1014 may comprise a processor complex/CPU 1012, which may include, but is not limited to, one or more of a general purpose processor, an application-specific processor, a reconfigurable processor (FPGA), a processor core, a combination of processors, a processor cache, a processor cache hierarchy, or the like. In one embodiment, the processor complex 1012 comprises a processor cache, and the processor cache may include one or more of a write combine buffer, an L1 processor cache, an L2 processor cache, an L3 processor cache, a processor cache hierarchy, and other types of processor cache. One or more ACM users 1016 (e.g., operating systems, applications, and so on) operate on the host 1014.

The host 1014 may be communicatively coupled to the ACM 1011 via a bus 1040, which may comprise a PCI-e bus, or the like. Portions of the ACM 1011 are made accessible to the host 1014 may mapping in auto-commit buffers 1013 into the host 1014. In some embodiments, mapping comprises associating an address range within the host memory system 1018 with an auto-commit buffer 1013 of the ACM 1011. These associations may be enabled using the SML API 1019 and/or SML 1050 available on the host 1014.

The SML 1050 may comprise libraries and/or provide interfaces (e.g., SML API 1019) to implement the memory access semantics described above. The API 1019 may be used to access the ACM 1011 using memory access semantics via a memory semantic access module 1522. Other types of access, such as access to the non-volatile storage 1502, may be provided via a block device interface 1520.

The SML 1050 may be configured to memory map auto-commit buffers 1013 of the ACM 1011 into the memory system 1018 (via the SML API 1019). The memory map may use a virtual memory abstraction of the memory system 1018. For example, a memory map may be implemented using a memory mapped file abstraction. In this example, the operating system (or application) 1016 designates a file to be mapped into the memory system 1018. The file is associated with a logical identifier (LID) 1025 (e.g., logical block address), which may be maintained by a file system, an operating system 1016, or the like.

The memory mapped file may be associated with an auto-commit buffer 1013 of the ACM 1013. The association may be implemented by the SML 1050 using the bus 1040. The SML 1050 associates the address range of the memory mapped file (in the memory system 1018) with a device address of an auto-commit buffer 1013 on the ACM 1011. The association may comprise mapping a PCI-e BAR into the memory system 1018. In the FIG. 6 example, the ACM address range 1021 in the memory system 1018 is associated with the auto-commit buffer 1013.

As discussed above, providing memory access semantics to the ACM 1011 may comprise “arming” the ACM 1011 to commit data stored thereon in the event of failure or other restart. The pre-configured arming ensures that, in the event of a restart, data stored on the ACM 1011 will be committed to the proper logical identifier. The pre-configuration of the trigger condition enables applications 1016 to access the auto-commit buffer 1013 using “instant-commit” memory access semantics. The logical identifier used to arm the auto-commit buffer may be obtained from an operating system, the memory system 1018 (e.g., virtual memory system), or the like.

The SML 1050 may be configured to arm the auto-commit buffers 1013 with a logical identifier (e.g., automatically, by callback, and/or via the SML API 1019). Each auto-commit buffer 1013 may be armed to commit data to a different logical identifier (different LBA, persistent identifier, or the like), which may allow the ACM 1011 to provide memory semantic access to a number of different, concurrent ACM users 1016. In some embodiments, arming an auto-commit buffer 1013 comprises setting the ACM metadata 1015 with a logical identifier. In the FIG. 6 example, the ACM address range 1021 is associated with the logical identifier 1025, and the ACM metadata 1015 of the associated auto-commit buffer is armed with the corresponding logical identifier 1025.

The SML 1050 may arm an auto-commit buffer using an I/O control (IOCTL) command comprising the ACM address range 1021, the logical identifier 1025, and/or an indicator of which auto-commit buffer 1013 is to be armed. The SML 1050 (through the SML API 1019) may provide an interface to disarm or “detach” the auto-commit buffer 1013. The disarm command may cause the contents of the auto-commit buffer 1013 to be committed as described above (e.g., committed to the non-volatile storage device 1502). The detach may further comprise “disarming” the auto-commit buffer 1013 (e.g., clearing the ACM metadata 1015). The SML 1050 may be configured to track mappings between address ranges in the memory system 1018 and auto-commit buffers 1013 so that a detach command is performed automatically.

Alternatively, or in addition, the SML 1050 may be integrated into the operating system (or virtual operating system, e.g., hypervisor) of the host 1014. This may allow the auto-commit buffers 1013 to be used by a virtual memory demand paging system. The operating system may (through the SML API 1019 or other integration technique) map/arm auto-commit buffers for use by ACM users 1016. The operating system may issue commit commands when requested by an ACM user 1016 and/or its internal demand paging system. Accordingly, the operating system may use the ACM 1011 as another, generally available virtual memory resource.

Once an ACM user 1016 has mapped the ACM address range 1021 to an auto-commit buffer 1013 and has armed the buffer 1013, the ACM user 1016 may access the resource using memory access semantics, and may consider the memory accesses to be “logically” committed as soon as the memory access has completed. The ACM user 1016 may view the memory semantic accesses to the ACM address range 1021 to be “instantly committed” because the ACM 1011 is configured to commit the contents of the auto-commit buffer (to the logical identifier 1025) regardless of experiencing restart conditions. Accordingly, the ACM user 1016 may not be required to perform separate write and commit commands (e.g., a single memory semantic write is sufficient to implement a write-commit). Moreover, the mapping between the auto-commit buffer 1013 and the ACM 1011 disclosed herein removes overhead due to function calls, system calls, and even a hypervisor (if the ACM user 1016 is running in a virtual machine) that typically introduce latency into the write-commit path. The write-commit latency time of the ACM user 1016 may therefore be reduced to the time required to access the ACM 1011 itself.

As described above, in certain embodiments, the host 1014 may map one or more ACM buffers 1013 into an address range of a physical memory address space addressable by a CPU, a kernel, or the like of the host device 1014, such as the memory system 1018, as directly attached physical memory, as MMIO addressable physical memory over a PCI-e bus, or otherwise mapped as one or more pages of physical memory. The host 1014 may further map at least a portion of the physically mapped ACM buffers 1013 into a virtual memory address space, accessible to user-space processes or the like as virtual memory. The host 1014 may map the entire capacity of the physically mapped ACM buffers 1013 into a virtual memory address space, a portion of the physically mapped ACM buffers 1013 into a virtual memory address space, or the like.

In a similar manner, the host 1014 may include a virtual machine hypervisor, host operating system, or the like that maps the physically mapped ACM buffers 1013 into an address space for a virtual machine or guest operating system. The physically mapped ACM buffers 1013 may appear to the virtual machine or guest operating system as physically mapped memory pages, with the virtual machine hypervisor or host operating system spoofing physical memory using the ACM buffers 1013. A resource management agent, as described above, may allocate/arbitrate storage capacity of the ACM buffers 1013 among multiple virtual machines, guest operating systems, or the like.

Because, in certain embodiments, virtual machines, guest operating systems, or the like detect the physically mapped ACM buffers 1013 as if they were simply physically mapped memory, the virtual machines can sub-allocate/arbitrate the ACM buffers 1013 into one or more virtual address spaces for guest processes, or the like. This allows processes within guest operating systems, in one embodiment, to change ACM data and/or ACM metadata 1015 directly, without making guest operating system calls, without making requests to the hypervisor or host operating system, or the like.

In another embodiment, instead of spoofing physical memory for a virtual machine and/or guest operating system, a virtual machine hypervisor, a host operating system, or the like of the host device 1014 may use para-virtualization techniques. For example, a virtual machine and/or guest operating system may be aware of the virtual machine hypervisor or host operating system and may work directly with it to allocate/arbitrate the ACM buffers 1013, or the like. When the ACM 1011 is used in a virtual machine environment, in which one or more ACM users 1016 operate within a virtual machine maintained by a hypervisor, the hypervisor may be configured to provide ACM users 1016 operating within the virtual machine with access to the SML API 1019 and/or SML 1050.

The hypervisor may access the SML API 1019 to associate logical identifiers with auto-commit buffers 1013 of the ACM 1011, as described above. The hypervisor may then provide one or more armed auto-commit buffers 1013 to the ACM users 1016 (e.g., by mapping an ACM address range 1021 within the virtual machine memory system to the one or more auto-commit buffers 1013). The ACM user 1016 may then access the ACM 1011 using memory access semantics (e.g., efficient write-commit operations), without incurring overheads due to, inter alia, hypervisor and other system calls. The hypervisor may be further configured to maintain the ACM address range 1021 in association with the auto-commit buffers 1013 until explicitly released by the ACM user 1016 (e.g., the keep the mapping from changing during use). Para-virtualization and cooperation, in certain embodiments, may increase the efficiency of the ACM 1011 in a virtual machine environment.

In some embodiments, the ACM user 1016 may be adapted to operate with the “instant commit” memory access semantics provided by the ACM 1013. For example, since the armed auto-commit buffers 1013 are triggered to commit in the event of a restart (without an explicit commit command), the order in which the ACM user 1016 performs memory access to the ACM 1011 may become a consideration. The ACM user 1016 may employ memory barriers, complier flags, and the like to ensure the proper ordering of memory access operations.

For example, read before write hazards may occur where an ACM user 1016 attempts to read data through the block device interface 1520 that is stored on the ACM 1011 (via the memory semantic interface 1522). In some embodiments, the SML 1050 may maintain metadata tracking the associations between logical identifiers and/or address ranges in the memory system 1018 and auto-commit buffers 1013. When an ACM user 1016 (or other entity) attempts to access a logical identifier that is mapped to an auto-commit buffer 1013 (e.g., through the block device interface 1520), the SML 1050 directs the request to the ACM 1011 (via the memory semantic interface 1522), preventing a read before write hazard.

The SML 1050 may be configured to provide a “consistency” mechanism for obtaining a consistent state of the ACM 1011 (e.g., a barrier, snapshot, or logical copy). The consistency mechanism may be implemented using metadata maintained by the SML 1050, which, as described above, may track the triggered auto-commit buffers 1013 in the ACM 1011. A consistency mechanism may comprise the SML 1050 committing the contents of all triggered auto-commit buffers 1013, such that the state of the persistent storage is maintained (e.g., store the contents of the auto-commit buffers 1013 on the non-volatile storage 1502, or other persistent storage).

As described above, ACM users 1016 may access the ACM 1011 using memory access semantics, at RAM granularity, with the assurance that the operations will be committed if necessary (in the event of restart, failure, power loss, or the like). This is enabled by, inter alia, a mapping between the memory system 1018 of the host 1014 and corresponding auto-commit buffers 1013; memory semantic operations implemented within an ACM memory range 1021 mapped to an auto-commit buffer 1013 are implemented directly on the buffer 1013. As discussed above, data transfer between the host 1041 and the ACM 1011 may be implemented using any suitable data transfer mechanism including, but not limited to: the host 1014 performing processor IO operations (PIO) with the ACM 1011 via the bus 1040 (e.g., MMIO, PMIO, and the like); the ACM 1011 (or other device) providing one or more DMA engines or agents (data movers) to transfer data between the host 1014 and the ACM 1011; the host 1014 performing processor cache write/flush operations; or the like. Transferring data on the bus 1040 may comprise issuing a bus “write” operation followed by a “read.” The subsequent “read” may be required where the bus 1040 (e.g., PCI bus) does not provide an explicit write acknowledgement.

In some embodiments, an ACM user may wish to transfer data to the ACM 1011 in bulk as opposed to a plurality of small transactions. Bulk transfers may be implemented using any suitable bulk transfer mechanism. The bulk transfer mechanism may be predicated on the features of the bus 1040. For example, in embodiments comprising a PCI-e bus 1040, bulk transfer operations may be implemented using bulk register store CPU instructions.

Similarly, certain data intended for the ACM 1011 may be cached in processor cache of the processor complex 1012. Data that is cached in a processor cache may be explicitly flushed to the ACM 1011 (to particular auto-commit buffers 1013) using a CPU cache flush instruction, or the like, such as the serializing instruction described below.

The DMA engines described above may also be used to perform bulk data transfers between an ACM user 1016 and the ACM 1011. In some embodiments, the ACM 1011 may implement one or more of the DMA engines, which may be allocated and/or accessed by ACM users 1016 using the SML 1050 (through the SML API 1019). The DMA engines may comprise local DMA transfer engines for transferring data on a local, system bus as well as RDMA transfer engines for transferring data using a network bus, network interface, or the like.

In some embodiments, the ACM 1011 may be used in caching applications. For example, the non-volatile storage device 1502 may be used as cache for other backing store, such as a hard disk, network-attached storage, or the like (not shown). One or more of the ACM 1011 auto-commit buffers 1013 may be used as a front-end to the non-volatile storage 1502 cache (a write-back cache) by configuring one or more of the auto-commit buffers 1013 of the ACM 1011 to commit data to the appropriate logical identifiers in the non-volatile storage 1502. The triggered buffers 1013 are accessible to ACM users 1016 as described above (e.g., by mapping the buffers 1013 into the memory system 1018 of the host 1014). A restart condition causes the contents of the buffers 1013 to be committed to the non-volatile storage 1502 cache. When the restart condition is cleared, the cached data in the non-volatile storage 1502 (committed by the auto-commit buffers 1013 on the restart condition) will be viewed as “dirty” in the write cache and available for use and/or migration to the backing store. The use of the ACM 1011 as a cache front-end may increase performance and/or reduce wear on the cache device.

In some embodiments, auto-commit buffers 1013 of the ACM 1011 may be leveraged as a memory write-back cache by an operating system, virtual memory system, and/or one or more CPUs of the host 1014. Data cached in the auto-commit buffers 1013 as part of a CPU write-back cache may be armed to commit as a group. When committed, the auto-commit buffers 1013 may commit both data and the associated cache tags. In some embodiments, the write-back cache auto-commit buffers 1013 may be armed with an ACM address (or armed with a predetermined write-back cache address). When the data is restored, logical identifier information, such as LBA and the like, may be determined from a log or other data.

In some embodiments, the SML 1050 may comprise libraries and/or publish APIs adapted to a particular set of ACM users 1016. For example, the SML 1050 may provide an Instant Committed Log Library (ICL) 1552 adapted for applications whose performance is tied to write-commit latency, such as transaction logs (database, file system, and other transaction logs), store and forward messaging systems, persistent object caching, storage device metadata, and the like.

The ICL 1552 provides mechanisms for mapping auto-commit buffers 1013 of the ACM 1011 into the memory system 1018 of an ACM user 1016 as described above. ACM users 1016 (or the ICL 1552 itself) may implement an efficient “supplier/consumer” paradigm for auto-commit buffer 1013 allocation, arming, and access. For example, a “supplier” thread or process (in the application space of the ACM users 1016) may be used to allocate and/or arm auto-commit buffers 1013 for the ACM user 1016 (e.g., map auto-commit buffers 1013 to address ranges within the memory system 1018 of the host 1014, arm the auto-commit buffers 1013 with a logical identifier, and so on). A “consumer” thread or process of the ACM user 1016 may then accesses the pre-allocated auto-commit buffers 1013. In this approach, allocation and/or arming steps are taken out of the write-commit latency path of the consumer thread. The consumer thread of the ACM user 1016 may consider memory semantic accesses to the memory range mapped to the triggered auto-commit buffers (the ACM memory range 1021) as being “instantly committed” as described above.

Performance of the consumer thread(s) of the ACM user 1016 may be enhanced by configuring the supplier threads of an Instant Committed Log Library (ICL) 1552 (or ACM user 1016) to allocate and/or arm auto-commit buffers 1013 in advance. When a next auto-commit buffer 1013 is needed, the ACM user 1016 have access a pre-allocated/armed buffer from a pool maintained by the supplier. The supplier may also perform cleanup and/or commit operations when needed. For example, if data written to an auto-commit buffer is to be committed to persistent storage, a supplier thread (or another thread outside of the write-commit path) may cause the data to be committed (using the SML API 1019). Committing the data may comprise re-allocating and/or re-arming the auto-commit buffer 1013 for a consumer thread of the ACM user 1016 as described above.

The “supplier/consumer” approach described above may be used to implement a “rolling buffer.” An ACM user 1016 may implement an application that uses a pre-determined amount of “rolling” data. For example, an ACM user 1016 may implement a message queue that stores the “last 20 inbound messages” and/or the ACM user 1016 may manage directives for a non-volatile storage device (e.g., persistent trim directives or the like). A supplier thread may allocate auto-commit buffers 1013 having at least enough capacity to hold the “rolling data” needed by the ACM user 1016 (e.g., enough capacity to hold the last 20 inbound messages). A consumer thread may access the buffers using memory access semantics (load and store calls) as described above. The SML API 1019 (or supplier thread of the ACM user 1016) may monitor the use of the auto-commit buffers 1013. When the consumer thread nears the end of its auto-commit buffers 1013, the supplier thread may re-initialize the “head” of the buffers 1013, by causing the data to be committed (if necessary), mapping the data to another range within the memory system 1018, and arming the auto-commit buffer 1013 with a corresponding logical identifier. As the consumer continues to access the buffers 1013, the consumer stores new data at a new location that “rolls over” to the auto-commit buffer 1013 that was re-initialized by the supplier thread, and continues to operate. In some cases, data written to the rolling buffers described above may never be committed to persistent storage (unless a restart condition or other triggering condition occurs). Moreover, if the capacity of the auto-commit buffers 1013 is sufficient to hold the rolling data of the ACM user, the supplier threads may not have to perform re-initialize/re-arming described above. Instead, the supplier threads may simply re-map auto-commit buffers 1013 that comprise data that has “rolled over” (and/or discard the “rolled over” data therein).

In its simplest form, a rolling buffer may comprise two ACM buffers 1013, and the SML 1050 may write to one ACM buffer 1013 for an ACM user 1016 while destaging previously written data from the other ACM buffer 1013 to a storage location, such as the non-volatile memory 1110 or the like. In response to filling one ACM buffer 1013 and completing a destaging process of the other ACM buffer 1013, the SML 1050 may transparently switch the two ACM buffers such that the ACM user 1016 writes to the other ACM buffer 1013 during destaging of the one ACM buffer 1013, in a ping-pong fashion. The SML 1050 may implement a similar rolling process with more than two ACM buffers 1013. The ICL 1552, in certain embodiments, includes and/or supports one or more transactional log API functions. An ACM user 1016 may use the ICL 1552, in these embodiments, to declare or initialize a transactional log data structure.

As a parameter to a transactional log API command to create a transactional log data structure, in one embodiment, the ICL 1552 receives a storage location, such as a location in a namespace and/or address space of the non-volatile storage 1502 or the like, to which the SML 1050 may commit, empty, and/or destage data of the transactional log from two or more ACM buffers 1013 in a rolling or circular manner as described above. Once an ACM user 1016 has initialized or declared a transactional log data structure, in one embodiment, the use of two or more ACM buffers 1013 to implement the transactional log data structure is substantially transparent to the ACM user 1016, with the performance and benefits of the ACM 1011. The use of two or more ACM buffers 1013, in certain embodiments, is transparent when the destage rate for the two or more ACM buffers 1013 is greater than or equal to the rate at which the ACM user 1016 writes to the two or more ACM buffers 1013. The ICL 1552, in one embodiment, provides byte-level writes to a transactional log data structure using two or more ACM buffers 1013.

In another example, a supplier thread may maintain four (4) or more ACM buffers 1013. A first ACM buffer 1013 may be armed and ready to accept data from the consumer, as described above. A second ACM buffer 1013 may be actively accessed (e.g., filled) by a consumer thread, as described above. A third ACM buffer 1013 may be in a pre-arming process (e.g., re-initializing, as described above), and a fourth ACM buffer 1013 may be “emptying” or “destaging” (e.g., committing to persistent storage, as described above).

In some embodiments, the ICL 1552 and/or rolling log mechanisms described above may be used to implement an Intent Log for Synchronous Writes for a filesystem (e.g., the ZFS file system). The log data (ZIL) may be fairly small (1 to 4 gigabytes) and is typically “write only.” Reads may only be performed for file system recovery. One or more auto-commit buffers 1013 may be used to store filesystem data using a rolling log and/or demand paging mechanism as described above.

The ICL library 1552 may be configured to operate in a high-availability mode as described above in conjunction with FIG. 4. In a high-availability mode, the SML 1050 and/or bus 1040 sends commands pertaining to memory semantic accesses to two or more ACM 1011, each of which may implement the requested operations and/or be triggered to commit data in the event of a restart condition.

The ACM 1011 disclosed herein may be used to enable other types of applications, such as durable synchronization primitives. A synchronization primitive may include, but is not limited to: a semaphore, mutex, atomic counter, test and set, or the like.

A synchronization primitive may be implemented on an auto-commit buffer 1013. ACM users 1016 (or other entities) that wish to access the synchronization primitive may map the auto-commit buffer 1013 into the memory system 1018. In some embodiments, each ACM user 1016 may map the synchronization primitive auto-commit buffer 1013 into its own, respective address range in the memory system 1018. Since the different address ranges are all mapped to the same auto-commit buffer 1013, all will show the same state of the synchronization primitive. ACM users 1016 on remote computing devices may map the synchronization primitive auto-commit buffer 1013 into their memory system using an RDMA network or other remote access mechanism (e.g., Infiniband, remote PCI, etc.).

In some embodiments, the SML 1050 may comprise a Durable Synchronization Primitive Library (DSL) 1554 to facilitate the creation of and/or access to synchronization primitives on the ACM 1011. The DSL 1554 may be configured to facilitate one-to-many mappings as described above (one auto-commit buffer 1030-to-many address ranges in the memory system 1018).

The ACM users 1016 accessing the semaphore primitive may consider their accesses to be “durable,” since if a restart condition occurs while the synchronization primitive is in use, the state of the synchronization primitive will be persisted as described above (the auto-commit buffer 1013 of the synchronization primitive will be committed to the non-volatile storage 1502, or other persistent storage).

As described above, the SML 1050 may be used to map a file into the memory system 1018 (virtual address space) of the host 1014. The file may be mapped in an “Instant Committed Memory” (ICM) mode. In this mode, all changes made to the memory mapped file are guaranteed to be reflected in the file, even if a restart condition occurs. This guarantee may be made by configuring the demand paging system to use an auto-commit buffer 1013 of the ACM 1011 for all “dirty” pages of the ICM file. Accordingly, when a restart condition occurs, the dirty page will be committed to the file, and no data will be lost.

In some embodiments, the SML 1050 may comprise an ICM Library (ICML) 1556 to implement these features. The ICML 1556 may be integrated with an operating system and/or virtual memory system of the host 1014. When a page of an ICM memory mapped file is to become dirty, the ICML 1556 prepares an auto-commit buffer 1013 to hold the dirty page. The auto-commit buffer 1013 is mapped into the memory system 1018 of the host 1014, and is triggered to commit to a logical identifier associated with the memory mapped file. As described above, changes to the pages in the memory system 1018 are implemented on the auto-commit buffer 1013 (via the memory semantic access module 1522).

The ICML 1556 may be configured to commit the auto-commit buffers 1013 of the memory mapped file when restart conditions occur and/or when the demand paging system of the host 1014 needs to use the auto-commit buffer 1013 for another purpose. The determination of whether to “detach” the auto-commit buffer 1013 from a dirty page may be made by the demand paging system, by the SML 1050 (e.g., using a least recently used (LRU) metric, or the like), or by some other entity (e.g., an ACM user 1016). When the auto-commit buffer is detached, the SML 1050 may cause its contents to be committed. Alternatively, the contents of the auto-commit buffer 1013 may be transferred to system RAM at which point the virtual memory mapping of the file may transition to use a RAM mapping mechanisms.

In some embodiments, the SML 1050 (or ICML 1556) may be configured to provide a mechanism to notify the operating system (virtual memory system or the like) that a page of a memory mapped file is about to become dirty in advance of an ACM user 1016 writing the data. This notification may allow the operating system to prepare an auto-commit buffer 1013 for the dirty page in advance, and prevent stalling when the write actually occurs (while the auto-commit buffer is mapped and armed). The notification and preparation of the auto-commit buffer 1013 may implemented in a separate thread (e.g., a supplier thread as described above).

The SML 1050 and/or ICML 1556 may provide an API to notify the operating system that a particular page that is about to be written has no useful contents and should be zero filled. This notification may help the operating system to avoid unnecessary read operations.

The mechanisms for memory mapping a file to the ACM 1011 may be used in log-type applications. For example, the ICL library 1552 may be implemented to memory map a log file to one or more auto-commit buffers 1013 as described above. A supplier thread may provide notifications to the operating system regarding which pages are about to become dirty and/or to identify pages that do not comprise valid data.

Alternatively, or in addition, the ICML 1556 may be implemented without integration into an operating system of the host 1014. In these embodiments, the ICML 1556 may be configured to monitor and/or trap system signals, such as mprotect, mmap, and manual segmentation fault signals to emulate the demand paging operations typically performed by an operating system.

FIG. 7 is a flow diagram of one embodiment of a method 1600 for providing an auto-commit memory. At step 1610 the method 1600 may start and be initialized. Step 1610 may comprise the method 1600 initiating communication with an ACM over a bus (e.g., initiating communication with ACM 1011 via bus 1040).

At step 1620, an auto-commit buffer of the ACM may be mapped into the memory system of a computing device (e.g., the host 1014). The mapping may comprise associating a BAR address of the auto-commit buffer with an address range in the memory system.

At step 1630, the auto-commit buffer may be armed with ACM metadata configured to cause the auto-commit buffer to be committed to a particular persistent storage and/or at a particular location in the persistent storage in the event of a restart condition. In some embodiments, the ACM metadata may comprise a logical identifier such as a LBA, object identifier, or the like. Step 1630 may comprise verifying that the ACM metadata is valid and/or can be used to commit the contents of the auto-commit buffer.

At step 1640, an ACM user, such as an operating system, application, or the like, may access the armed auto-commit buffer using memory access semantics. The ACM user may consider the accesses to be “instantly committed” due to the arming of step 1630. Accordingly, the ACM user may implement “instant committed” writes that omit a separate and/or explicit commit command. Moreover, since the memory semantic accesses are directly mapped to the auto-commit buffer (via the mapping of step 1620), the memory semantic accesses may bypass systems calls typically required in virtual memory systems.

At step 1650 the method 1600 ends until a next auto-commit buffer is mapped and/or armed.

FIG. 8 is a flow diagram of another embodiment of a method 1700 for providing an auto-commit memory. At step 1710 the method 1700 starts and is initialized as described above.

At step 1720, an auto-commit buffer of an ACM is mapped into the memory system of a computing device (e.g., the host 1014), and is armed as described above.

At step 1730, an ACM user accesses the auto-commit buffer using memory access semantics (e.g., by implementing memory semantic operations within the memory range mapped to the auto-commit buffer at step 1720).

At step 1740, a restart condition is detected. As described above, the restart condition may be a system shutdown, a system restart, a loss of power, a loss of communication between the ACM and the host computing device, a software fault, or any other restart condition that precludes continued operation of the ACM and/or the host computing device.

At step 1750, the ACM implements the armed triggered commit actions on the auto-commit buffer. The triggered commit action may comprise committing the contents of the auto-commit buffer to persistent storage, such as a solid-state or other non-volatile storage or the like.

At step 1760, the method 1700 ends until a next auto-commit buffer is mapped and/or armed or a restart condition is detected.

FIG. 9 is a flow diagram of another embodiment for providing an auto-commit memory. At step 1810, the method 1800 starts and is initialized as described above. At step 1820, a restart condition is detected.

At step 1830, the method 1800 accesses armed auto-commit buffers on the ACM (if any). Accessing the armed auto-commit buffer may comprise the method 1800 determining whether an auto-commit buffer has been armed by inspecting the triggered ACM metadata thereof. If no triggered ACM metadata exists, or the ACM metadata is invalid, the method 1800 may determine that the auto-commit buffer is not armed. If valid triggered ACM metadata does exist for a particular auto-commit buffer, the method 1800 identifies the auto-commit buffer as an armed buffer and continues to step 1840.

At step 1840, the triggered commit action for the armed auto-commit buffers is performed. Performing the triggered commit action may comprise persisting the contents of the auto-commit buffer to a sequential and/or log-based storage media, such as a solid-state or other non-volatile storage media. Accordingly, the triggered commit action may comprise accessing a logical identifier of the auto-commit buffer, labeling the data with the logical identifier, and injecting the labeled data into a write data pipeline. Alternatively, the triggered commit action may comprise storing the data on a persistent storage having a one-to-one mapping between logical identifier and physical storage address (e.g., a hard disk). The triggered commit action may comprise storing the contents of the armed auto-commit buffer to the specified physical address.

Performing the triggered commit action at step 1840 may comprise using a secondary power supply to power the ACM, solid-state storage medium, and/or other persistent, non-volatile storage medium, until the triggered commit actions are completed.

Enabling Auto-Commit Memory Outside of the File and Storage System

In certain embodiments, instead of or in addition to using a volatile memory namespace, such as a physical memory namespace, a virtual memory namespace, or the like and/or instead of or in addition to using a storage namespace, such as a file system namespace, a logical unit number (LUN) namespace, or the like, one or more commit agents 1020, as described above, may implement an independent persistent memory namespace for the ACM 1011. For example, a volatile memory namespace, which is typically accessed using an offset in physical and/or virtual memory, is not persistent or available after a restart event such as a reboot, failure event, or the like and a process that owned the data in physical and/or virtual memory prior to the restart event typically no longer exists after the restart event. Alternatively, a storage namespace is typically accessed using a file name and an offset, a LUN ID and an offset, or the like. While a storage namespace may be available after a restart event, a storage namespace may have too much overhead for use with the ACM 1011. For example, saving a state for each executing process using a file system storage namespace may result in a separate file for each executing process, which may not be an efficient use of the ACM 1011.

The one or more commit agents 1020 and/or the controller 1004, in certain embodiments, provide ACM users 1016 with a new type of persistent memory namespace for the ACM 1011 that is persistent through restart events without the overhead of a storage namespace. One or more processes, such as the ACM user 1016, in one embodiment, may access the persistent memory namespace using a unique identifier, such as a globally unique identifier (GUID), universal unique identifier (UUID), or the like so that data stored by a first process for an ACM user 1016 prior to a restart event is accessible to a second process for the ACM user 1016 after the restart event using a unique identifier, without the overhead of a storage namespace, a file system, or the like.

The unique identifier, in one embodiment, may be assigned to an ACM user 1016 by a commit agent 1020, the controller 1004, or the like. In another embodiment, an ACM user 1016 may determine its own unique identifier. In certain embodiments, the persistent memory namespace is sufficiently large and/or ACM users 1016 determine a unique identifier in a predefined, known manner (e.g., based on a sufficiently unique seed value, nonce, or the like) to reduce, limit, and/or eliminate collisions between unique identifiers. In one embodiment, the ACM metadata 1015 includes a persistent memory namespace unique identifier associated with an owner of an ACM buffer 1013, an owner of one or more pages of an ACM buffer 1013, or the like.

In one embodiment, the one or more commit agents 1020 and/or the controller 1004 provide a persistent memory namespace API to ACM users 1016, over which the ACM users 1016 may access the ACM 1011 using the persistent memory namespace. In various embodiments, the one or more commit agents 1020 and/or the controller 1004 may provide a persistent memory namespace API function to transition, convert, map, and/or copy data from an existing namespace, such as a volatile memory namespace or a storage namespace, to a persistent memory namespace; a persistent memory namespace API function to transition, convert, map, and/or copy data from a persistent memory namespace to an existing namespace, such as a volatile memory namespace or a storage namespace; a persistent memory namespace API function to assign a unique identifier such as a GUID, a UUID, or the like; a persistent memory namespace API function to list or enumerate ACM buffers 1013 associated with a unique identifier; a persistent memory namespace API function to export or migrate data associated with a unique identifier so that an ACM user 1016 such as an application and/or process may take its ACM data to a different host 1014, to a different ACM 1011, or the like; and/or other persistent memory namespace API functions for the ACM 1011. For example, an ACM user 1016, in one embodiment, may use a persistent memory namespace API function to map one or more ACM buffers 1013 of a persistent memory namespace into virtual memory of an operating system of the host 1014, or the like, and the mapping into the virtual memory may end in response to a restart event while the ACM user 1016 may continue to access the one or more ACM buffers 1013 after the restart event using the persistent memory namespace. In certain embodiments, the SML 1050 may provide the persistent memory namespace API in cooperation with the one or more commit agents 1020 and/or the controller 1004.

The persistent memory namespace, in certain embodiments, is a flat non-hierarchical namespace of ACM buffers 1013 (and/or associated ACM pages), indexed by the ACM metadata 1015. The one or more commit agents 1020 and/or the controller 1004, in one embodiment, allow the ACM buffers 1013 to be queried by ACM metadata 1015. In embodiments where the ACM metadata 1015 includes a unique identifier, in certain embodiments, an ACM user 1016 may query or search the ACM buffers 1013 by unique identifier to locate ACM buffers 1013 (and/or stored data) associated with a unique identifier. In a further embodiment, the one or more commit agents 1020 and/or the controller 1004 may provide one or more generic metadata fields in the ACM metadata 1015 such that an ACM user 1016 may define its own ACM metadata 1015 in the generic metadata field, or the like. The one or more commit agents 1020 and/or the controller 1004, in one embodiment, may provide access control for the ACM 1011, based on unique identifier, or the like.

In one embodiment, an ACM buffer 1013 may be a member of a persistent memory namespace and one or more additional namespaces, such as a volatile namespace, a storage namespace or the like. In a further embodiment, the one or more commit agents 1020 and/or the controller 1004 may provide multiple ACM users 1016 with simultaneous access to the same ACM buffers 103. For example, multiple ACM users 1016 of the same type and/or with the same unique identifier, multiple instances of a single type of ACM user 1016, multiple processes of a single ACM user 1016, or the like may share one or more ACM buffers 1013. Multiple ACM users 1016 accessing the same ACM buffers 1013, in one embodiment, may provide their own access control for the shared ACM buffers 1013, such as a locking control, turn-based control, moderator-based control, or the like. In a further embodiment, using a unique identifier, a new ACM user 1016, an updated ACM user 1016, or the like on the host 1014 may access

Dual Ported ACM

In certain embodiments, the ACM 1011 may comprise a plurality of independent access channels, buses, and/or ports, and may be at least dual ported (e.g., dual ported, triple ported, quadruple ported). In embodiments where the ACM 1011 is at least dual ported, the ACM 1011 is accessible over a plurality of independent buses 1040. For example, the ACM 1011 may be accessible over redundant bus 1040 connections with a single host 1014, may be accessible to a plurality of hosts 1014 over separate buses 104 with the different hosts 1014, or the like. In embodiments where the ACM 1011 is at least dual ported, if one node and/or access channel fails (e.g., a host 1014, a bus 1040), one or more additional nodes and/or access channels to the ACM 1011 remain functional, obviating the need for redundancy, replication, or the like between multiple hosts 1014.

In one embodiment, the ACM 1011 comprises a PCI-e attached dual port device, and the ACM 1011 may be connected to and in communication with two hosts 1014 over independent PCI-e buses 1040. For example, the ACM 1011 may comprise a plurality of PCI-e edge connectors for connecting to a plurality of PCI-e slot connectors, or the like. In a further embodiment, the power connection 1030 may also be redundant, with one power connection 1030 per bus 1040 or the like. At least one of the plurality of connections, in certain embodiments, may comprise a data network connection such as a NIC or the like. For example, the ACM 1011 may comprise one or more PCI-e connections and one or more data network connections.

In one embodiment, the controller 1004 may arbitrate between a plurality of hosts 1014 to which the ACM 1011 is coupled, such that one host 1014 may access the ACM buffers 1013 at a time. The controller 1004, in another embodiment, may accept a reservation request from a host 1014 and may provide the requesting host 1014 with access to the ACM buffers 1013 in response to receiving the reservation request. The ACM 1011 may natively support a reservation request as an atomic operation of the ACM 1011. In other embodiments, the ACM 1011 may divide ACM buffers 1013 between hosts 1014, may divide ACM buffers 1013 between hosts but share backing non-volatile memory 1110 between hosts, or may otherwise divide the ACM buffers 1013, the non-volatile memory 1110, and/or associated address spaces between hosts 1014.

In one embodiment, the controller 1004, the one or more commit agents 1020, and/or other elements of the ACM 1011 may be dual-headed, split-brained, or the like, each head or brain being configured to communicate with a host 1014 and with each other to provide redundant functions for the ACM 1011. By being at least dual ported, in certain embodiments, the ACM 1011 may be redundantly accessible, without the overhead of replication, duplication, or the like which would otherwise reduce I/O speeds of the ACM 1011, especially if such replication, duplication, were performed over a data network or the like.

Auto-Commit Memory Management Operations

FIG. 10A depicts one embodiment of an ACM module 1317. The ACM module 1317, in certain embodiments, may be substantially similar to the ACM module 1317 described above with regard to FIG. 5. In other embodiments, the ACM module 1317 may include, may be integrated with, and/or may be in communication with the SML 1050, the storage controller 1004, 1104, 1304, and/or the commit agent 1020.

In general, the ACM module 1317 services auto-commit requests from an ACM user 1016 or other client for the ACM 1011. As described above with regard to the ACM users 1016, as used herein, a client may comprise one or more of an operating system (OS), virtual operating platform (e.g., an OS with a hypervisor), guest OS, application, process, thread, entity, utility, user, or the like, that is configured to access or use the ACM 1011. In certain embodiments, the ACM module 1317 supports one or more auto-commit memory management operations, such as a populate operation, a destage operation, a barrier operation, a checkpoint operation or the like. In the depicted embodiment, the ACM module 1317 includes an auto-commit request module 1902 and a transfer module 1904. The transfer module 1904, in the depicted embodiment, includes a populate module 1905 and a destage module 1906. By supporting a populate, destage, barrier, and/or checkpoint operation, in certain embodiments, the ACM module 1317 provides an interface whereby an ACM user 1016 or other client may manage what data is stored in and/or ensure persistence and consistency for the byte addressable ACM buffers 1013, whether the ACM buffers 1013 are natively volatile or non-volatile, regardless of the type of media used for the ACM buffers 1013.

As described above, in certain embodiments, the ACM module 1317 and/or the ACM 1011 enable clients such as the ACM users 1016 to access fast, byte-addressable, persistent memory, combining benefits of volatile memory and non-volatile storage. Auto-commit logic inside the hardware of the storage device 102, such as the power management apparatus 122 described above, in certain embodiments, provides power-cut protection for data written to the auto-commit buffers 1013 of the ACM 1011.

In certain embodiments, a storage capacity of the auto-commit buffers 1013 may be less than a storage capacity of the non-volatile memory media 1110 of the non-volatile storage device 1102, less than a storage capacity of a recording/memory/storage medium located external to the non-volatile storage device 1102 such as on the host device 1014, with an ACM user 1016, over a data network, or the like. For example, a recording/memory/storage medium of the auto-commit buffers 1013 may be more expensive per unit of storage capacity than the non-volatile memory media 1110 or the like. In order to manage storage capacity differences, to provide flexibility to ACM users 1016, or the like, in one embodiment, the ACM module 1317 may allow an ACM user 1016 or other client to dynamically load or populate data from other locations into the auto-commit buffers 1013 using a populate command and/or to dynamically unload or destage data from the auto-commit buffers 1013 to another location using a destage command, thereby freeing storage capacity of the auto-commit buffers 1013 for other use. By allowing ACM users 1016 to dynamically manage and move data into and out of auto-commit buffers 1013, in certain embodiments, the ACM module 1317 may minimize an impact of a smaller storage capacity of the auto-commit buffers 1013, allowing the ACM users 1016 to dynamically store certain data in other locations.

The ACM 1011 may be accessible to applications, operating system components, and/or other ACM users 1016 as byte-addressable memory mapped to a virtual address space of a memory system 1018 of a processor complex 1012. Updates to data of the ACM 1011 by ACM users 1016 may be stored in one or more processor caches of the processor complex 1012 and/or the memory system 1018, from which the data may be written back lazily to the underlying ACM buffers 1013. A processor cache may include a write combine buffer, an L1 processor cache, an L2 processor cache, an L3 processor cache, a processor cache hierarchy, and/or another type of processor cache.

Caching data of the ACM buffers 1013 in a processor cache may improve performance (e.g., decrease an amount of time it takes for the processor complex 1012 to access data of the ACM buffers 1013). However, in certain embodiments, caching data of the ACM buffers 1013 may increase a risk of losing updates to the data in response to a restart event such as a power failure of the host 1014. For example, a processor cache may be weakly ordered, not guaranteeing or ensuring that the processor cache will maintain an order of operations for cached data, but instead trickling data down to the auto-commit buffers 1013 arbitrarily, without a guaranteed order or timeframe.

In certain embodiments, the ACM module 1317, in cooperation with the SML 1050 or the like, makes the ACM 1011 available to one or more ACM users 1016 using an API, such as the SML API 1019 described above. The ACM module 1317 and/or the SML 1050 may provide the SML API 1019 and/or another ACM API to ACM users 1016 at a user-level and/or a kernel-level.

To make the ACM 1011 usable for ACM users 1016, even across restart events, the ACM module 1317 may provide persistence and/or consistency for data of the auto-commit buffers 1013, despite the weak ordering of a processor cache of the processor complex 1012. The ACM module 1317, in certain embodiments, may guarantee or ensure that application data residing in processor caches of the processor complex 1012 has been flushed or destaged to the ACM 1011 and will be persisted across restart events as described above.

The ACM module 1317 may provide consistency of data of the auto-commit buffers 103 to ensure that the data is meaningful to the ACM user 1016 after a restart event, (e.g., the data may be accessed, recovered, interpreted by an ACM user 1016 to recover application data and/or state). As described above, the memory system 1018 may flush, destage, or otherwise move data from the one or more processor caches of the processor complex 1012 to the auto-commit buffers 1013 at arbitrary times without strict ordering.

Further, ACM users 1016 may perceive consistency across multiple updates to data of the auto-commit buffers 1013. For example, a transaction of an ACM user 1016 may change multiple attributes within a data structure, and the ACM module 1317 may atomically update each change to preserve application consistency for the ACM user 1016. By managing consistency for data of the auto-commit buffers 1013 for the ACM users 1016, in certain embodiments, the ACM module 1317 may obviate the need for ACM users 1016 to manage consistency themselves, thereby simplifying application development, use of the ACM 1011, and the like.

The ACM module 1317 may provide, guarantee, or otherwise manage persistence and/or consistency using one or more management and/or synchronization operations, such as a populate operation, a destage operation, a barrier operation, a checkpoint operation, or the like. As used herein, a populate operation comprises an ACM operation that transfers, copies, moves, and/or loads data into one or more auto-commit buffers 1013 of the ACM 1011. A destage operation, as used herein, comprises an ACM operation that transfers, copies, moves, and/or loads data from one or more auto-commit buffers 1013 of the ACM 1011 to another location. As used herein, a barrier operation comprises an ACM operation that synchronizes, flushes, and/or destages dirty data from one or more processor caches to one or more auto-commit buffers 1013 of the ACM 1011. A checkpoint operation, as used herein, comprises an ACM operation that creates a copy or snapshot of the data contents of one or more pages of the auto-commit buffers 1013.

In one embodiment, a checkpoint operation synchronizes, flushes, and/or destages dirty data from one or more processor caches to the auto-commit buffers 1013 (e.g., performs a barrier operation) prior to copying the data contents of the pages of the auto-commit buffers 1013 to create a snapshot, to service a destage request, or the like. The ACM module 1317, in various embodiments, may use the auto-commit request module 1902, the transfer module 1904 (e.g., the populate module 1905 and/or the destage module 1906), a barrier module 1908, a flush module 1914, a completion module 1916, a checkpoint module 1910, and/or a lock module 1912 to execute populate operations, destage operations, barrier operations, checkpoint operations, and/or other management operations for the ACM 1011.

In one embodiment, the auto-commit request module 1902 is configured to monitor, detect, or otherwise receive auto-commit requests from clients, such as the ACM users 1016 described above, another module, a host computing device 1014, or the like. The auto-commit request module 1902, in one embodiment, receives auto-commit requests from clients over an ACM API, such as the SML API 1019 described above, or the like. The auto-commit request module 1902 may receive auto-commit requests directly or indirectly, may receive a notification or report of an auto-commit request, or the like.

An auto-commit request that the auto-commit request module 1902 receives, in certain embodiments, may comprise a populate request, a destage request, a barrier request, a checkpoint request, or another ACM management request. The auto-commit request module 1902, in certain embodiments, determines a request type for a received auto-commit request, for example, determining whether a received auto-commit request is a populate request, a destage request, a barrier request, or a checkpoint request, so that the ACM module 1317 can service the received auto-commit request. The auto-commit request module 1902 may provide a different function, method, and/or channel for different types of auto-commit requests, may support a type indicator or field in an auto-commit request indicating a request type, may parse an auto-commit request to determine a request type, or the like.

As described in greater detail below with regard to the transfer module 1904, the auto-commit request module 1902 may be configured to receive auto-commit requests to copy, move, write, load, or otherwise transfer data between two namespaces, two locations, or the like, such as a populate request, a destage request, or the like. As used herein, a namespace comprises a container or range of logical or physical identifiers that index or identify data, data locations, or the like. As described above, examples of namespaces may include a file system namespace, a LUN namespace, a logical address space, a storage namespace, a virtual memory namespace, a persistent ACM namespace, a volatile memory namespace, an object namespace, a network namespace, a global or universal namespace, a BAR namespace, or the like.

A populate request and/or a destage request may include one or more logical identifiers, such as a source logical identifier and a destination or target logical identifier, indicating the locations and/or namespaces between which the data is to be transferred. As described above, logical identifiers may include a file identifier and/or an offset from a file system namespace, a LUN ID and an offset from a LUN namespace, an LBA or LBA range from a storage namespace, one or more virtual memory addresses from a virtual memory namespace, an ACM address from a persistent ACM namespace, a volatile memory address from a volatile memory namespace of the host device 1014, an object identifier, a network address, a GUID, UUID, or the like, a BAR address or address range from a BAR namespace, or another logical identifier. As described above, a commit agent 1020 or the like may include a logical identifier for data in the ACM metadata 1015 for the data. The logical identifier for the data may be known to a client, such as an ACM user 1016, and the commit agent 1020 or the like may make the data available to the client after a restart event, so that the client can retrieve the data based on the known logical identifier even after the restart event.

In one embodiment, the ACM module 1317 uses the transfer module 1904 to service auto-commit requests to transfer or move data between different locations, different namespaces, or the like, such as populate and/or destage requests. The transfer module 1904 may use the populate module 1905 to service populate requests, the destage module 1906 to service destage requests, or the like.

The transfer module 1904, in cooperation with the populate module 1905 and/or the destage module 1906 or the like, may determine whether a namespace associated with an auto-commit request is associated with the non-volatile storage device 1102, such as a namespace for the non-volatile memory media 1110, a namespace for the ACM 1011, 1111, or the like (e.g., is the data of the request stored by and/or to be transferred to the non-volatile storage device 1102). In certain embodiments, at least one of the namespaces of a populate request and/or a destage request is associated with an auto-commit buffer 1013 of the ACM 1011, 1111, such as a namespace of a source logical identifier for a destage request, of a destination logical identifier for a populate request, or the like. For example, the transfer module 1904 may analyze or parse a source logical identifier, a destination logical identifier, or the like from a populate request and/or a destage request to determine whether the logical identifiers are for the ACM 1011, 1111 or the non-volatile memory media 1110.

If the transfer module 1904, the populate module 1905, and/or the destage module 1906 determines that both the source and the destination for the data of a transfer are within the non-volatile storage device 1102 (e.g., the data is being populated from the non-volatile memory media 1110 to the ACM 1011, 1111, the data is being destaged from the ACM 1011, 1111 to the non-volatile memory media 1110, or the like), the transfer may be performed internally within the non-volatile storage device 1102. In certain embodiments, data is transferred internally within a non-volatile storage device 1102 when the data remains within the physical confines or footprint of the non-volatile storage device 1102, when the data is transferred without entering a system communications bus 1040 between the non-volatile storage device 1102 and a host device 1014, when the data is transferred over an internal bus within the non-volatile storage device 1102, or the like. For example, in one embodiment, the transfer module 1904, the populate module 1905, and/or the destage module 1906 may transfer data between an integrated circuit or other storage element of the ACM 1011, 1111 and an integrated circuit or other storage element of the non-volatile memory media 1110 over a communications bus of the non-volatile storage device 1102 or the like, on the same printed circuit board (PCB) or interconnected group of PCBs (e.g., between a daughter card and a host or mother card, between peer or sister cards on the same bus, or the like).

By servicing transfer auto-commit requests, such as populate requests and/or destage requests, internally within a single device, interconnected devices, or the like, without transferring the data to a host device 1014 and/or a host processor 1012 over a system communications bus 1040, in certain embodiments, the ACM module 1317 may reduce traffic and increase available bandwidth on the system communications bus 1040, reduce processing overhead for the host processor 1012, or the like in comparison to data transfers that use a system communications bus 1040 and/or a host processor 1012 to complete the transfer. The transfer module 1904, using the populate module 1905 and/or the destage module 1906, may optimize the transfer of data for the ACM 1011, 1111 by determining whether the source and/or destination for the data is associated with the non-volatile storage device 1102, and transferring the data internally when possible. If a source location or a destination location for a transfer auto-commit request, such as a populate and/or destage request, is external to the non-volatile storage device 1102, such as another non-volatile storage device of the host device 1014, volatile memory of the host device 1014, a network storage location, or the like, the transfer module 1904 may transfer, move, copy, populate, and/or destage the data between the ACM 1011, 1111 and the external location, associate the data with a namespace of the external location, or the like.

In response to a populate request and/or a destage request, the transfer module 1904 may transfer or change a physical storage location for data and, in certain embodiments, may transfer or change a namespace and/or logical address space for the data to reflect a new location for the data. For example, based on a source location and/or namespace of data of a populate request, the populate module 1905 may transfer data from a file system namespace, a LUN namespace, a block storage namespace, a virtual memory namespace, a volatile memory namespace, an object namespace, a BAR namespace, or another namespace to a namespace of the ACM 1011, 1111, such as the persistent ACM namespaces described above. In a further embodiment, the populate module 1905 may associate transferred data in the ACM 1011, 1111 with ACM metadata, such as a logical address for the data to be committed to in the non-volatile memory media 1110, as described above.

In certain embodiments, the transfer module 1904 may preserve a logical identifier for transferred data, such as a logical identifier from ACM metadata 1015 for the data, so that a client who knows the logical identifier may retrieve the data using the known logical identifier, before or after transferring, destaging, and/or populating the data. For example, in response to a destage request for data, the transfer module 1904 may write an LBA or LBA range, a filename, a LUN ID, a persistent ACM address, or the like for data to an append point of a sequential log of the non-volatile memory media 1110 with the data, or to another predefined location, to preserve the association of the logical identifier and the data. In response to a populate request for data, the transfer module 1904 may store a known logical identifier such as an LBA or LBA range, a filename, a LUN ID, a persistent ACM address, or the like for data to the auto-commit buffer 1013 with the data as ACM metadata 1015 or the like, to preserve the association between the known logical identifier and the data.

The populate module 1905 may transfer data between address spaces by preserving, adding, updating, and/or changing a logical-to-physical mapping for transferred data in a mapping structure, index, forward map, or the like as described above with regard to the metadata 1051 and/or forward index 1053 maintained by the SML 1050. For example, to transfer data from an address space of the non-volatile memory media 1110 to an address space of the ACM 1011, 1111 in response to a populate request to transfer the data into the ACM 1011, 1111, the populate module 1905 may remove an entry for the data from a forward index 1053 or other mapping structure for the non-volatile memory media 1110 and add an entry for the data in an index or other mapping structure for the ACM 1011, 1111. For data the populate module 1905 transfers from a location external to the non-volatile storage device 1102, the populate module 1905 may cooperate with a storage controller, device driver, or the like for the external location to remove the data from a namespace or address space of the external location, or the like. In other embodiments, the populate module 1905 may leave the data at the external location, mapped by the namespace and/or address space of the external location.

The destage module 1906, based on a destination location and/or namespace of data of a destage request, may transfer data from a namespace of the ACM 1011 to a file system namespace, a LUN namespace, a block storage namespace, a virtual memory namespace, a volatile memory namespace, an object namespace, a BAR namespace, or another namespace of a destination or target location of the destage request. The destage module 1906 may transfer data between address spaces by preserving, adding, updating, and/or changing a logical-to-physical mapping for transferred data in a mapping structure, index, forward map, or the like as described above with regard to the metadata 1051 and/or forward index 1053 maintained by the SML 1050. For example, to transfer or destage data from an address space of the ACM 1011, 1111 to an address space of the non-volatile memory media 1110 in response to a destage request to transfer the data to the non-volatile memory media 1110, the destage module 1906 may remove an entry for the data from an index or other mapping structure for the ACM 1011, 1111 and add an entry for the data in a forward index 1053 or other mapping structure for the non-volatile memory media 1110. For data the destage module 1906 transfers or destages from the ACM 1011, 1111 to a location external to the non-volatile storage device 1102, the destage module 1906 may cooperate with a storage controller, device driver, or the like for the external location to add the data to a namespace or address space of the external location, as part of a write process for the external location or the like.

In one embodiment, the transfer module 1904 may leave a copy of transferred data in the previous location, accessible using one or more logical identifiers from the previous namespace. In a further embodiment, the transfer module 1904 may delete, remove, trim, invalidate, erase, or otherwise clear transferred data from the previous or original location to reclaim storage capacity of the previous or original location for use to store other data. In certain embodiments, whether a transfer (e.g., a populate, a destage, or the like) is a copy, with data remaining in a previous location, or a move, with data removed from a previous location, may be selectable by a requesting user or client 1016, as a parameter to a populate and/or destage request or the like.

In one embodiment, the transfer module 1904 uses the populate module 1905 to service populate requests from ACM users 1016 or other clients. The populate module 1905, in certain embodiments, is configured to service populate requests by transferring, copying, or loading data into one or more auto-commit buffers 1013 of the ACM 1011, 1111, associating data with a namespace or address space of the one or more auto-commit buffers 1013, or the like as described above.

The populate module 1905 may determine, based on a populate request, whether the data of the populate request is already located in the non-volatile storage device 1102, in the non-volatile memory media 1110 or the like, and may transfer the data internally within the non-volatile storage device 1102 as described above. For example, the populate module 1905 may determine whether a source namespace or address space of the data of a populate request is associated with the non-volatile storage device 1102 based on a source logical identifier for the data of the populate request, and transfer or load the data into the ACM 1011, 1111 and/or to a namespace or address space of the ACM 1011, 1111 internally within the non-volatile storage device 1102 if the source namespace or address space is associated with the non-volatile storage device 1102. If the data of a populate request is not already located in the non-volatile storage device 1102, the populate module 1905 may transfer the data from a location external to the non-volatile storage device 1102, using a programmed input/output (PIO) operation, a DMA operation, a 3^(rd) party DMA operation, an RDMA operation, a block device interface, an operating system storage stack, or the like, transferring the data over a system communications bus 1040, using a processor 1012 of the host device 1014, or the like.

In one embodiment, the transfer module 1904 uses the destage module 1906 to service destage requests from ACM users 1016 or other clients. The destage module 1906, in certain embodiments, is configured to service destage requests by transferring, copying, or destaging data from one or more auto-commit buffers 1013 of the ACM 1011, 1111 to another location, associating data with a namespace or address space of the other location as described above. In certain embodiments, the destage module 1906 transfers or destages an entire range or region of data identified in a destage request, regardless of whether a portion of the data may already be stored at the destination location. In another embodiment, the destage module 1906 may transfer or destage just dirty data, data that is not yet stored at the destination location, without transferring or destaging clean data that is already stored at the destination location. In certain embodiments, the destage module 1906 transfers, copies, or destages data from one or more auto-commit buffers 1013 to another location, such as the non-volatile memory media 1110 or the like, that may have a larger capacity, a slower response time, or the like than the one or more auto-commit buffers 1013.

The destage module 1906 may determine, based on a destage request, whether the destination for the destage request is within the non-volatile storage device 1102, in the non-volatile memory media 1110 or the like, and may transfer or destage the data internally within the non-volatile storage device 1102 as described above. For example, the destage module 1906 may determine whether a destination namespace or address space of the data of a destage request is associated with the non-volatile storage device 1102, such as the non-volatile memory media 1110, based on a destination logical identifier for the data of the destage request, and transfer or destage the data from the ACM 1011, 1111 internally within the non-volatile storage device 1102 if the destination namespace or address space is associated with the non-volatile storage device 1102 (e.g., the data is being transferred, copied, or moved within the non-volatile storage device 1102, to another location in the ACM 1011, 1111, to the non-volatile memory media 1110, or the like).

If the destination for data of a destage request is not located in the non-volatile storage device 1102, the populate module 1905 may transfer or destage the data from the ACM 1011, 1111 to a location external to the non-volatile storage device 1102, using a PIO operation, a DMA operation, a 3^(rd) party DMA operation, an RDMA operation, a block device interface, an operating system storage stack, or the like, transferring the data over a system communications bus 1040, using a processor 1012 of the host device 1014, or the like. In response to transferring or destaging data of a destage request from one or more auto-commit buffers 1013 of the ACM 1011, 1111, the destage module 1906 may delete, remove, trim, invalidate, erase, or otherwise clear the data from the ACM 1011 and reuse the storage capacity associated with the data in the one or more auto-commit buffers 1013.

As described below with regard to the flush module 1914, prior to transferring or destaging data from the ACM 1011, the destage module 1906 may cooperate with the flush module 1914 to ensure consistency of the data (e.g., that data is flushed from a processor complex 1012 of the host device 1014 to the one or more auto-commit buffers 1013). For example, the flush module 1914 described below may issue a serializing instruction that flushes data from the processor complex 1012 to the one or more auto-commit buffers 1013, may place a destage identifier or other marker in the processor complex 1012 associated with the non-volatile storage device 1102 (e.g., storing the destage identifier or other marker to a virtual memory address mapped to a control status register or other predefined location within the non-volatile storage device 1102), may issuing a second serializing instruction to flush the destage identifier or other marker from the processor complex 1012, or the like. The destage module 1906 may transfer, destage, or otherwise write data of a destage request from the ACM 1011 to a destination location in response to receiving a destage identifier or other marker from the flush module 1914 in the non-volatile storage device 1102. In certain embodiments, the flush module 1914 may place, in the processor complex 1012, an indicator for the data of a destage request prior to issuing a serializing instruction, so that the serializing instruction flushes the indicator to the non-volatile storage device 1102 where it is received by the destage module 1906.

FIG. 10B depicts another embodiment of an ACM module 1317. In one embodiment, the ACM module 1317 may be substantially similar to one or more of the ACM modules 1317 described above with regard to FIGS. 5 and 10A. In the depicted embodiment, the ACM module 1317 of FIG. 10B includes an auto-commit request module 1902 and a transfer module 1904 with a populate module 1905 and a destage module 1906 and further includes a barrier module 1908, a checkpoint module 1910, and a lock module 1912. The barrier module 1908 in FIG. 10B includes a flush module 1914 and a completion module 1916.

In one embodiment, the auto-commit request module 1902 is substantially similar to the auto-commit request module 1902 described above with regard to FIG. 10A, receiving, detecting, or otherwise monitoring auto-commit requests and the like. The transfer module 1904, in one embodiment, uses the populate module 1905 to service populate requests and/or uses the destage module 1906 to service destage requests substantially as described above. The barrier module 1908, in certain embodiments, services barrier auto-commit requests using the flush module 1914 and the completion module 1916, and may ensure consistency of data for the transfer module 1904.

In one embodiment, the flush module 1914, to service a populate request, a destage request, a barrier request, a checkpoint request, or the like, is configured to issue, perform, or otherwise execute a serializing instruction for a processor cache of a processor complex 1012 in response to the auto-commit request module 1902 receiving an auto-commit request. A serializing instruction flushes, destages, or otherwise synchronizes data from a processor cache of the processor complex 1012 and/or the memory system 1018 to underlying memory, such as an auto-commit buffer 1013. One or more auto-commit buffers 1013 receive data that the flush module 1914 flushes or destages from the processor complex 1012. An auto-commit buffer 1013, or other underlying memory device, to which data is flushed or destaged from the processor complex 1012 in response to a serializing instruction, in one embodiment, is selected by a memory manager for the processor complex 1012 or the like, based on which underlying memory device is mapped into a logical address range for the data in virtual memory of the processor complex 1012.

Examples of serializing instructions include an MFENCE instruction, an SFENCE instruction, an xchg instruction (e.g., compare and swap, compare and swap double, CMPXCHG, CMPXCHNG8B, CMPXCHNG16B, and/or CMP8XCHG16), or the like. In certain embodiments, a serializing instruction ensures and/or guarantees that operations, such as memory semantic load and store operations, that precede the serializing instruction, are flushed, destaged, or otherwise synchronized prior to operations that follow the serializing instruction.

In one embodiment, the flush module 1914 issues, performs, or otherwise executes a serializing instruction for an entire processor cache or set of processor caches in response to an auto-commit request. In another embodiment, the flush module 1914 may issue, perform, or otherwise execute a serializing instruction just for data of one or more auto-commit buffers 1013 stored in a processor cache or set of processor caches, so that data associated with other memory devices is not necessarily flushed, destaged, and/or synchronized. For example, the flush module 1914 may include a memory address range 1021 for pages of one or more auto-commit buffers 1013 in the serializing instruction, so that the processor cache or set of caches flushes, destages, or otherwise synchronizes just the indicated memory address range 1021.

In one embodiment, the completion module 1916 is configured to determine completion of the serializing instruction flushing, destaging, or otherwise synchronizing data to one or more auto-commit buffers 1013. The completion module 1916, in certain embodiments, determines that a serializing instruction has completed by placing a predefined completion identifier in the processor cache after the flush module 1914 issues the serializing instruction, issuing a second serializing instruction, and determining that the serializing instruction is complete once the completion identifier is received at the non-volatile storage device 102 of the ACM 1011. In certain embodiments, the completion identifier comprises a destage identifier or other marker, which also indicates to the destage module 1906 that a destage operation has been requested. Because a serializing instruction ensures or guarantees that operations performed prior to the serializing instruction are synchronized prior to operations performed after the serializing instruction, the synchronization of the completion identifier to the ACM 1011 in response to the second serializing instruction indicates that the first serializing instruction has completed. In other embodiments, the completion module 1916 may determine completion of the serializing instruction without issuing a second serializing instruction. For example, the processor complex 1012 may notify the completion module 1916 of completion of the serializing instruction by sending an interrupt, writing a completion identifier to a control status register which the completion module 1916 may poll, or the like.

The completion module 1916, in certain embodiments, may place a completion identifier, a destage identifier, or another predefined marker in the processor cache by writing or storing the completion identifier to a virtual memory address of the host device 1014 mapped to a control status register of the ACM 1011. In another embodiment, the completion module 1916 may place a completion identifier in the processor cache by writing or storing the completion identifier to a virtual memory address mapped to a page of an auto-commit buffer 1013, or the like. The completion module 1916, in various embodiments, may detect arrival of a completion identifier, a destage identifier, or another marker in the ACM 1011 by polling a control status register of the ACM 1011, by polling a predefined location in the auto-commit buffers 1013, by receiving an interrupt from the ACM 1011, or the like.

The completion module 1916, in certain embodiments, may use different completion identifiers depending on the type of the auto-commit request. For example, the completion module 1916 may write a BARRIER COMPLETE completion identifier for a barrier request, may write a CHECKPOINT BEGIN completion identifier for a checkpoint request, may write a DESTAGE BEGIN completion identifier for a destage request, or the like. A completion identifier, in one embodiment, comprises a predefined sequence, string, pattern, flag, or other indicator that the completion module 1916 may write or store to a processor cache, to the ACM 1011, or the like.

For checkpoint requests, as described below with regard to the checkpoint module 1910, in response to a CHECKPOINT BEGIN completion identifier or another checkpoint indicator, the checkpoint module 1910 may create a snapshot copy of one or more pages of the auto-commit buffers 1013. The completion module 1916 and/or the checkpoint module 1910, in certain embodiments, may write a CHECKPOINT COMPLETE completion identifier to a control status register of the ACM 1011 in response to the checkpoint module 1910 completing the snapshot copy.

In one embodiment, the completion module 1916 indicates, to a requesting client, completion of an auto-commit request. The completion module 1916, in various embodiments, may indicate or notify a client of completion of an auto-commit request by returning execution control to the client, by sending a return value to the client, by sending an interrupt to the client, by writing a completion identifier to a control status register polled or poked by the client, or the like.

The ACM module 1317, in certain embodiments, may guarantee or ensure persistence of data flushed to one or more auto-commit buffers 1013 in response to the completion module 1916 determining that a serializing instruction for the flushed data has completed. In a further embodiment, the ACM module 1317 may guarantee or ensure persistence of operations received for one or more auto-commit buffers 1013 prior to a received auto-commit request in response to the completion module 1916 determining completion of a serializing instruction for the auto-commit request. As described above, once data has been synchronized or stored in the auto-commit buffers 1013, the ACM 1011 preserves or persists the data in non-volatile memory media 110, 1110 and provides the data from the non-volatile memory media 110, 1110 to clients, such as ACM users 1016, after recovery from the restart event. In this manner, in certain embodiments, the ACM module 1317 can provide persistence and consistency of data for ACM users 1016 even if a processor cache does not guarantee an order of data, an order of operations, or the like.

As described above, in certain embodiments, the ACM 1011 is coupled to the host device 1014 using a communications bus 1040 such as a PCI-e bus 1040 or the like. In one embodiment, the communications bus 1040 supports strong operation ordering, at least for transactions within a similar traffic class or the like, so that the communications bus 1040 maintains an order in which data is flushed from the processor cache to one or more auto-commit buffers 1013. For example, PCI-e 2.0, PCI-e 3.0, and the like support strong ordering semantics for transactions within the same traffic class. By flushing or destaging data from a processor cache to an auto-commit buffer 1011 over a communications bus 1040 that supports strong operation ordering, in certain embodiments, the completion module 1916 may ensure that a serializing instruction has actually completed in response to receiving a completion identifier at the ACM 1011 because the data of the serializing instruction and the completion identifier are received in operation order. In embodiments where the communications bus 1040 does not support operation ordering, the flush module 1914 may act as an intermediary between the processor complex 1012 and the communications bus 1040, coordinating with the controller 1004 to provide strong operation ordering over the communications bus 1040 or the like. For example, the flush module 1914 may queue commands in a FIFO queue and manage and confirm the exchange of each command with the controller 1004, or the like to enforce strong or strict operation ordering. The communications bus 1040 may be in communication with the processor complex 1012 through a northbridge device, a root complex, or the like of the processor complex 1012.

In one embodiment, the checkpoint module 1910 cooperates with the barrier module 1908 to service checkpoint requests for one or more pages of the auto-commit buffers 1013. A checkpoint operation, in certain embodiments, comprises a barrier operation to ensure that pending writes residing in processor caches for the auto-commit buffers 1013 are written back to the auto-commit buffers 1013, followed by a snapshot operation to create a copy of one or more pages of data.

In one embodiment, the checkpoint module 1910 sends, to the ACM 1011, a checkpoint indicator identifying one or more pages of the auto-commit buffers 1013 to be checkpointed (e.g., the one or more pages that are to comprise the requested snapshot copy). The auto-commit request module 1902 may receive a checkpoint indicator with a checkpoint request from a client, or the like, and may provide the checkpoint indicator to the checkpoint module 1910. A checkpoint indicator, in various embodiments, may comprise a set, a list, a bitmap, an array, an address range, a page index, or another data structure indicating which pages of the one or more auto-commit buffers 1013 the checkpoint module 1910 is to checkpoint.

The checkpoint module 1910, in certain embodiments, sends a checkpoint indicator to the ACM 1011 by writing, storing, or otherwise placing the checkpoint indicator in a processor cache of the processor complex 1012 prior to the flush module 1914 issuing a first serializing instruction, so that the first serializing instruction flushes or destages the checkpoint indicator to the ACM 1011. For example, the checkpoint module 1910 may store a checkpoint indicator to a virtual memory address that is mapped to a predefined control status register of the ACM 1011, that is mapped to a predefined location within an auto-commit buffer 1013, or the like. In certain embodiments, the checkpoint module 1910 comprises a driver checkpoint module 1910 disposed in a device driver on the host computing device 1014, such as the SML 1050, which places a checkpoint indicator in a processor cache of the processor complex 1012, and a cooperating controller checkpoint module 1910 disposed in a storage controller 104, 1004, 1104, 1304 to receive, directly or indirectly, the checkpoint indicator at the ACM 1011. By placing a checkpoint indicator in a processor cache prior to a first serializing instruction, in certain embodiments, the checkpoint module 1910 may ensure that the checkpoint indicator reaches the ACM 1011 prior to a completion identifier from the completion module 1916.

In response to the completion module 1916 determining that the first serializing instruction has completed, in one embodiment, the checkpoint module 1910 copies one or more pages of the auto-commit buffers 1013, creating a snapshot of the one or more pages or the like. For example, the checkpoint module 1910 may copy the one or more pages in response to a completion identifier from the completion module 1916 comprising a checkpoint indicator, such as CHECKPOINT BEGIN or the like. In one embodiment, the checkpoint module 1910 copies the one or more pages to a second location within the auto-commit buffers 1013, so that the snapshot copy is separately preserved in response to a restart event. In another embodiment, the checkpoint module 1910 copies the one or more pages directly to non-volatile memory media 110, 1110 of the ACM 1011, creating the snapshot in the non-volatile memory media 110, 1110. In a further embodiment, the checkpoint module 1910 may copy the one or more pages to a separate non-volatile memory device, to a separate ACM 1011B, or the like that is independent from the ACM 1011, copying the one or more pages over a communications bus 1040, over a data network, or the like.

A commit agent 1020 of the ACM 1011, in certain embodiments, makes the snapshot copy of the one or more pages available to an ACM user 1016 after recovery from a restart event. In one embodiment, the ACM 1011 only makes snapshot copies of checkpointed data available to ACM users 1016 after recovery from a restart event, to provide the ACM users 1016 with a consistent, known state or the like. Writes or other changes to ACM data that occur between a checkpoint operation and a restart event, in certain embodiments, may be lost and unavailable after the restart event. In another embodiment, a commit agent 1020 of the ACM 1011 may make a raw, un-checkpointed version of data available to ACM users 1016 in addition to one or more snapshot copies or checkpointed versions of the data after a restart event.

In one embodiment, the lock module 1912 is configured to stall operations for one or more auto-commit buffers 1013 during execution of an auto-commit request, so that the ACM module 1317 can guarantee or ensure persistence and/or consistency of data after the auto-commit request or the like. For example, the lock module 1912 may stall operations between the flush module 1914 issuing a serializing instruction and the completion module 1916 determining completion of the serializing instruction. The lock module 1912, in certain embodiments, may stall operations by unmapping one or more auto-commit buffers 1013 from the virtual address space of an ACM user 1016 in response to an auto-commit request, and remapping the one or more auto-commit buffers 1013 into the virtual address space in response to completion of the auto-commit request.

In certain embodiments, the checkpoint module 1910 may track the progress of a checkpoint operation and the lock module 1912 may allow operations on portions of auto-commit buffers 1013 that have already been copied. The checkpoint module 1910, in a further embodiment, may cooperate with the lock module 1912 to copy or move existing data from an auto-commit buffer 1013 to a snapshot, so that the lock module 1912 can allow a pending operation for the auto-commit buffer 1013 to execute.

The ACM module 1317 and its various sub-modules 1902, 1904, 1905, 1906, 1908, 1910, 1912, 1914, 1916 as described above, may be disposed in a device driver for the ACM 1011 executing on a processor 1012 of the host device 1014, such as the SML 1050, may be disposed in a storage controller 104, 1004, 1104, 1304 for the ACM 1011, and/or may comprise portions in each of a device driver and a storage controller 104, 1004, 1104, 1304, or the like. In one embodiment, a device driver for a non-volatile storage device 102, 1102 comprises the auto-commit request module 1902 and the flush module 1914 and a storage controller 104, 1004, 1104, 1304 of the non-volatile storage device 102, 1102 comprises at least a portion of the populate module 1905, the destage module 1906, the completion module 1916, and/or the checkpoint module 1910, or the like.

For example, in one embodiment, the completion module 1916 comprises two portions, a driver completion module 1916 disposed in a device driver on the host device 1014 and a controller completion module 1916 disposed in a storage controller 104, 1004, 1104, 1304. The driver completion module 1916 may store a completion identifier to a processor cache and issue a second serializing instruction from the host 1014, while the controller completion module 1916 may determine completion of the serializing instruction in response to receiving the completion identifier flushed or destaged from the processor cache to the non-volatile storage device 102, 1011, 1102, or the like, in response to a second serializing instruction.

FIG. 11 depicts one embodiment of a method 2000 for auto-commit memory. The method 2000 begins, and the auto-commit request module 1902 monitors 2002 auto-commit requests from clients such as ACM users 1016. As described above, the monitored auto-commit requests may include ACM management requests such as barrier requests, checkpoint requests, and the like. If the auto-commit request module 1902 does not receive 2002 an auto-commit request from a client, the auto-commit request module 1902 continues to monitor 2002 auto-commit requests. If the auto-commit request module 1902 receives 2002 an auto-commit request from a client, the flush module 1914 issues 2004 a serializing instruction to flush, destage, or otherwise synchronize data from a processor cache to one or more auto-commit buffers 1013. If the completion module 1916 determines 2006 that the serializing instruction is complete (e.g., that the data has been flushed or destaged from the processor cache to the auto-commit buffers 1013), the method 2000 ends. Alternatively, if the completion module 1916 determines 2006 that the serializing instruction is not complete, the completion module 1916 continues to determine 2006 whether the serializing instruction is complete.

FIG. 12 depicts another embodiment of a method 2100 for auto-commit memory. The method 2100 begins, and the auto-commit request module 1902 monitors 2102 auto-commit requests from clients, such as ACM users 1016. If the auto-commit request module 1902 does not receive 2102 an auto-commit request from a client, the auto-commit request module 1902 continues to monitor 2102 auto-commit requests. If the auto-commit request module 1902 receives 2102 an auto-commit request from a client, the auto-commit request module 1902 determines 2104 an operation type for the received 2102 auto-commit request. If the auto-commit request module 1902 determines 2104 that the auto-commit request is a checkpoint request, the checkpoint module 1910 writes 2106 a checkpoint indicator to a control status register on the non-volatile storage device 102, 1102 of the ACM 1011, 1111. If the auto-commit request module 1902 determines 2104 that the auto-commit request is a barrier request, the checkpoint module 1910 does not write 2106 a checkpoint indicator. The method 2100 continues with step 2108.

The lock module 1912 stalls 2108 operations for one or more auto-commit buffers 1013 during execution of the received 2102 auto-commit request. The flush module 1914 issues 2110 a serializing instruction to flush, destage, and/or synchronize data from a processor cache to the one or more auto-commit buffers 1013. If the completion module 1916 determines 2112 that the serializing instruction is not complete, the completion module 1916 continues to determine 2112 whether the serializing instruction is complete. If the completion module 1916 determines 2112 that the serializing instruction is complete, the completion module 1916 writes 2114 a completion identifier to a control status register on the non-volatile storage device 102, 1102 of the ACM 1011, 1111. The completion module 1916 issues 2116 a second serializing instruction to flush the completion identifier to the non-volatile storage device 102, 1102.

If the auto-commit request module 1902 determines 2118 that the auto-commit request is a checkpoint request, the checkpoint module 1910 copies 2120 one or more pages identified by the checkpoint indicator to create a snapshot copy within the non-volatile storage device 102, 1102 of the ACM 1011, 1111. The method 2100 continues with step 2122. If the auto-commit request module 1902 determines 2118 that the auto-commit request is a barrier request, the checkpoint module 1910 may not copy 2120 pages of the auto-commit buffers. The lock module 1912 allows 2112 operations for the one or more auto-commit buffers 1013 and the auto-commit request module 1902 and/or the completion module 1916 indicates 2124 completion of the auto-commit request to a client. The method 2100 continues and the auto-commit request module 1902 monitors 2102 for additional auto-commit requests.

FIG. 13 depicts one embodiment of a method 2200 for auto-commit memory management. The method 2200 begins and the auto-commit request module 1902 determines 2202 whether an auto-commit request has been received from a client 1016, to transfer data between two namespaces or the like. At least one of the namespaces may be associated with an auto-commit buffer 1013 of a non-volatile device 1102. If the auto-commit request module 1902 determines 2202 that an auto-commit request has been received, such as a populate request, a destage request, or the like, the transfer module 1904 transfers 2204 the data between the two namespaces, using the populate module 1905, the destage module 1906, or the like and the method 220 ends. The transfer module 1904 may transfer 2204 the data within the non-volatile device 1102 in response to determining that a second namespace of the auto-commit request is associated with a non-volatile medium 1110 of the non-volatile device 1102. If no auto-commit request has been received 2202, the auto-commit request module 1902 continues to monitor 2202 auto-commit requests and the method 2202 continues.

FIG. 14 depicts another embodiment of a method 2300 for auto-commit memory management. The method 2300 begins and the auto-commit request module monitors 2302 auto-commit requests from clients, such as ACM users 1016 or the like. If the auto-commit request module 1902 does not receive 2302 an auto-commit request from a client, the auto-commit request module 1902 continues to monitor 2302 auto-commit requests. If the auto-commit request module 1902 receives 2302 an auto-commit request from a client, the auto-commit request module 1902 determines 2304 an operation type for the received 2302 auto-commit request.

If the auto-commit request module 1902 determines 2304 that the auto-commit request is a destage request, the lock module 1912 stalls 2306 operations for one or more auto-commit buffers 1013 during execution of the received 2302 auto-commit request. The flush module 1914 issues 2308 a serializing instruction to flush, destage, and/or synchronize data from a processor cache of a processor complex 1012 to the one or more auto-commit buffers 1013. If the completion module 1916 determines 2310 that the serializing instruction is not complete, the completion module 1916 continues to determine 2310 whether the serializing instruction is complete. If the completion module 1916 determines 2310 that the serializing instruction is complete, the completion module 1916 and/or the destage module 1906 writes 2312 a destage identifier or another marker to a control status register on the non-volatile storage device 102, 1102 of the ACM 1011, 1111. The completion module 1916 and/or the destage module 1906 issues 2314 a second serializing instruction to flush the destage identifier or another marker to the non-volatile storage device 102, 1102.

If the transfer module 1904, using the destage module 1906 or the like, determines 2316 that the data is associated with the non-volatile memory device 1102, such as the non-volatile memory medium 1110 or the like, the destage module 1906 writes 2318, destages, moves, copies, or otherwise transfers the data from the auto-commit buffer 1013 to the non-volatile memory medium 1110 or other location within the non-volatile memory device 1102. The destage module 1906 associates 2320 the data with a namespace of the non-volatile memory medium 1110. If the transfer module 1904, using the destage module 1906 or the like, determines 2316 that the data is not associated with the non-volatile memory device 1102 (e.g., is stored elsewhere, outside the non-volatile memory device 1102), the destage module 1906 writes 2326, destages, moves, copies, or otherwise transfers the data from the auto-commit buffer 1013 to a location external to the non-volatile memory device 1102 and associates 2328 the data with a namespace of the external location. The lock module 1912 allows 2322 operations for the one or more auto-commit buffers 1013 and the auto-commit request module 1902 and/or the completion module 1916 indicates 2324 completion of the auto-commit request to a client. The method 2300 continues and the auto-commit request module 1902 monitors 2302 for additional auto-commit requests.

If the auto-commit request module 1902 determines 2304 that the auto-commit request is a populate request, the transfer module 1904, using the populate module 1905 or the like, determines 2330 whether the data is associated with the non-volatile memory device 1102 (e.g., stored in the non-volatile memory media 1110 or the like). If the transfer module 1904 determines 2330 that the data is associated with the non-volatile memory device 1102, the populate module 1905 writes 2332, populates, moves, copies, or otherwise transfers the data from the non-volatile memory medium 1110 or other location within the non-volatile memory device 1102 into the auto-commit buffer 1013 within the non-volatile memory device 1102. If the transfer module 1904 determines 2330 that the data is not associated with the non-volatile memory device 1102, the populate module 1905 writes 2336, populates, moves, copies, or otherwise transfers the data from a location external to the non-volatile memory device 1102 into the auto-commit buffer 1013. The populate module 1905 associates 2334 the data with a namespace of the auto-commit buffer 1013. The auto-commit request module 1902 and/or the completion module 1916 indicates 2324 completion of the auto-commit request to a client. The method 2300 continues and the auto-commit request module 1902 monitors 2302 for additional auto-commit requests.

A means for receiving an auto-commit request for an auto-commit buffer 1013, in various embodiments, may include a storage management layer 1050, a device driver, a storage controller 104, 1004, 1104, 1304, an ACM API such as a SML API 1019, an auto-commit request module 1902, a processor complex 1012, other logic hardware, and/or other executable code stored on a computer readable storage medium. Other embodiments may include similar or equivalent means for receiving an auto-commit request for an auto-commit buffer 1013.

A means for populating an auto-commit memory 1011, 1111 and/or an auto-commit buffer 1013 with data in response to an auto-commit request comprising a populate request, in various embodiments, may include a storage management layer 1050, a device driver, a storage controller 104, 1004, 1104, 1304, an ACM module 1317, a transfer module 1904, a populate module 1905, a processor complex 1012, other logic hardware, and/or other executable code stored on a computer readable storage medium. Other embodiments may include similar or equivalent means for populating an auto-commit memory 1011, 1111 and/or an auto-commit buffer 1013 with data.

A means for destaging data from an auto-commit memory 1011, 1111 and/or an auto-commit buffer 1013 in response to an auto-commit request comprising a destage request, in various embodiments, may include a storage management layer 1050, a device driver, a storage controller 104, 1004, 1104, 1304, an ACM module 1317, a transfer module 1904, a destage module 1906, a processor complex 1012, other logic hardware, and/or other executable code stored on a computer readable storage medium. Other embodiments may include similar or equivalent means for destaging data from an auto-commit memory 1011, 1111 and/or an auto-commit buffer 1013.

A means for flushing data from a processor complex 1012 to an auto-commit memory buffer 1013 in response to an auto-commit request comprising a destage request, in various embodiments, may include a storage management layer 1050, a device driver, a storage controller 104, 1004, 1104, 1304, a transfer module 1904, a destage module 1906, a flush module 1914, a processor complex 1012, other logic hardware, and/or other executable code stored on a computer readable storage medium. Other embodiments may include similar or equivalent means for issuing a serializing instruction in response to an auto-commit request.

The present disclosure may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the disclosure is, therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope. 

What is claimed is:
 1. A method comprising: processing metadata for data saved from a volatile memory buffer to a non-volatile storage medium, the data saved in response to a trigger event for the volatile memory buffer; locating the saved data on the non-volatile storage medium; and providing access to the saved data after the trigger event based on the processed metadata.
 2. The method of claim 1, wherein providing access to the saved data comprises loading the saved data into the volatile memory buffer and mapping the volatile memory buffer into virtual memory of a client on a host computing device.
 3. The method of claim 1, wherein providing access to the saved data comprises writing the saved data to a predefined location.
 4. The method of claim 3, wherein the predefined location comprises one or more of a logical address of a block storage volume, an offset within a file, an application specific persistent object, a database record, and a volatile memory buffer.
 5. The method of claim 1, further comprising providing the metadata to a different entity for additional processing.
 6. The method of claim 5, wherein the metadata comprises multiple subsets for processing by multiple entities and the multiple subsets of the metadata comprise one or more of block metadata, file metadata, application metadata, process execution point metadata, and callback metadata for the saved data.
 7. The method of claim 1, further comprising authenticating a recipient of the saved data, wherein the metadata comprises security data and access to the saved data is provided in response to valid authentication of the recipient of the saved data based on the security data.
 8. The method of claim 1, wherein the metadata is processed in response to recovery from the trigger event for the volatile memory buffer, the trigger event comprising a restart event.
 9. The method of claim 1, wherein the metadata comprises one or more of an identifier of an agent for processing the saved data and computer executable code for processing the saved data.
 10. The method of claim 1, wherein access to the saved data is provided using a persistent unique identifier for the saved data, the metadata indicating the persistent unique identifier.
 11. The method of claim 10, wherein the persistent unique identifier is a member of one or more of a file system namespace, a logical unit number (LUN) namespace, and a persistent memory namespace for the volatile buffer.
 12. The method of claim 1, wherein the metadata identifies a location of the saved data in the non-volatile storage medium.
 13. The method of claim 1, wherein access to the saved data is provided by one or more of: automatically providing access after the trigger event; and providing access in response to a client request after the trigger event.
 14. An apparatus comprising: a volatile memory buffer within an isolation zone of a non-volatile memory device, the memory buffer configured to store data in the non-volatile memory device in response to a trigger event; and a commit agent configured to provide access to the data from the non-volatile memory device in response to recovery from the trigger event.
 15. The apparatus of claim 14, further comprising one or more secondary commit agents configured to process at least a portion of the data, the commit agent configured to provide the data to the one or more secondary commit agents based on auto-commit metadata associated with the data.
 16. The apparatus of claim 14, wherein the commit agent is configured to execute a triggered commit action for the data such that the data remains accessible after the trigger event, the triggered commit action identified in auto-commit metadata for the data.
 17. An apparatus comprising: an auto-commit memory configured to present one or more volatile auto-commit buffers to a host computing device, the one or more auto-commit buffers configured to write data from the one or more auto-commit buffers to a non-volatile recording medium; a storage management layer configured to allocate the one or more auto-commit buffers to a user; and a commit agent configured to provide the user with access to the data from the non-volatile recording medium after the data has been written to the non-volatile recording medium.
 18. The apparatus of claim 17, wherein the storage management layer is configured to allocate the one or more auto-commit buffers to the user in response to a map request from the user.
 19. The apparatus of claim 17, wherein the storage management layer is configured to reallocate the one or more auto-commit buffers in response to an unmap request from the user.
 20. The apparatus of claim 17, wherein the storage management layer is configured to map the one or more auto-commit buffers into a virtual address space for the user on the host computing device.
 21. The apparatus of claim 17, wherein the storage management layer is configured to dynamically reallocate the one or more auto-commit buffers to a different user based on a predefined memory management policy.
 22. The apparatus of claim 17, wherein the auto-commit memory is configured to present the one or more volatile auto-commit buffers to the host computing device as non-volatile storage. 